Skip to content

Commit 2e501d3

Browse files
authored
Update Calendar.dax
1 parent adc5575 commit 2e501d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Miscellaneous/Scripts/DAX/Calendar.dax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ VAR _result =
3333
, "Month", MONTH([Date])
3434
, "Week Ending", [Date] + 7 - WEEKDAY([Date], 1) // Saturday
3535
, "Week Starting", [Date] - WEEKDAY([Date], 1) + 1 // Sunday
36-
, "Week of Month", ROUNDUP(DIVIDE(DAY([Date]), 7), 0)
36+
, "Week of Month", 1 + WEEKNUM([Date]) - WEEKNUM( EOMONTH([Date], -1 ) + 1 )
3737
, "Week of Year", WEEKNUM([Date])
3838
)
3939

0 commit comments

Comments
 (0)