We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adc5575 commit 2e501d3Copy full SHA for 2e501d3
Miscellaneous/Scripts/DAX/Calendar.dax
@@ -33,7 +33,7 @@ VAR _result =
33
, "Month", MONTH([Date])
34
, "Week Ending", [Date] + 7 - WEEKDAY([Date], 1) // Saturday
35
, "Week Starting", [Date] - WEEKDAY([Date], 1) + 1 // Sunday
36
- , "Week of Month", ROUNDUP(DIVIDE(DAY([Date]), 7), 0)
+ , "Week of Month", 1 + WEEKNUM([Date]) - WEEKNUM( EOMONTH([Date], -1 ) + 1 )
37
, "Week of Year", WEEKNUM([Date])
38
)
39
0 commit comments