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 4263c36 commit adc5575Copy full SHA for adc5575
Miscellaneous/Scripts/DAX/Calendar.dax
@@ -22,6 +22,7 @@ VAR _result =
22
, "Fiscal Year Period", FORMAT(EDATE([Date], 6), "yyyyMM")
23
, "Fiscal Year Quarter Nbr", FORMAT(EDATE([Date], 6), "q")
24
, "Fiscal Year Quarter", FORMAT(EDATE([Date], 6), "\F\Yyyyy \Qq")
25
+ , "Fiscal Year Half", FORMAT(EDATE([Date], 6), "\F\Yyyyy \H") & ROUNDUP(MONTH(EDATE([Date], 6)) / 6, 0)
26
, "Fiscal Year", YEAR(EDATE([Date], 6))
27
, "Is Current FY", IF(YEAR(EDATE([Date], 6)) = _fiscal_year, 1, 0)
28
, "Is Future", IF([Date] > _today_date, 1, 0)
@@ -32,6 +33,8 @@ VAR _result =
32
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)
37
+ , "Week of Year", WEEKNUM([Date])
38
)
39
40
RETURN
0 commit comments