Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I want to build a calendar with below Fiscal WeekNum.
DAX QUERIES used to create calendar table
dimDate =
ADDCOLUMNS (
CALENDAR ("01/04/2019", "31/03/2020"),
"Year", YEAR ( [Date] ),
"WEEK NUMBER",WEEKNUM([Date],2),
"PERIOD","Week " & WEEKNUM([Date],2),
"QuarterOfYear", FORMAT ( [Date], "Q" ),
"MonthNumber", SWITCH(FORMAT ( [Date], "mmm" ),"Jan",10,"Feb",11,"Mar",12,"Apr",1,"May",2,"Jun",3,"Jul",4,"Aug",5,"Sep",6,"Oct",7,"Nov",8,"Dec",9),
"ISODate", FORMAT ( [Date], "DDMMYYYY" ),
"MonthName", FORMAT ( [Date], "mmmm" ),
"MonthInCalendar", FORMAT ( [Date], "mmm YYYY" ),
"QuarterInCalendar", "Q" & FORMAT ( [Date], "Q" ) & " " & FORMAT ( [Date], "YYYY" ),
"DayInWeek", WEEKDAY ( [Date] ),
"DayOfWeekName", FORMAT ( [Date], "dddd" ),
"DayOfWeekShort", FORMAT ( [Date], "ddd" ),
"YearMonthShort", FORMAT ( [Date], "YYYY/mmm" ),
"MonthNameShort", FORMAT ( [Date], "mmm" )
)
Please Note : My Calendar should start "01/04/2019" and end to "31/03/2020".
how about this:
FiscalWeek =
IF (
'Calendar'[WeekNum] < 40,
'Calendar'[WeekNum] + 13,
'Calendar'[WeekNum] - 39
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
57 | |
49 | |
44 | |
18 | |
18 |