Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I want to build a calendar with below Fiscal WeekNum.
FISCAL WEEK NUMBER
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
)
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
9 | |
6 |