Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Power Bi Fiscal week column from Week Number

I want to build a calendar with below Fiscal WeekNum.

 

FISCAL WEEK NUMBERFISCAL 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".

1 REPLY 1
Stachu
Community Champion
Community Champion

how about this:

FiscalWeek =
IF (
    'Calendar'[WeekNum] < 40,
    'Calendar'[WeekNum] + 13,
    'Calendar'[WeekNum] - 39
)


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors