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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sportive92003
Helper II
Helper II

Format Month

Hello,

Simple thing, but I don't know how to reach it. Just want to have "September" for Month 1 as it's my first Fiscal Month, "October" for Fiscal Month 2, etc... instead of 1,2,3,4,...

 

Where to put in in this programmation?

 

Dates =
VAR FirstCY = YEAR( FIRSTDATE('Feuil1 (2)'[date_de_la_facture]))
VAR FirstCM = MONTH(FIRSTDATE('Feuil1 (2)'[date_de_la_facture]))
VAR FirstFY = IF(FirstCM <=8, FirstCY - 1, FirstCY)
VAR LastCY = YEAR( LASTDATE('Feuil1 (2)'[date_de_la_facture]))
VAR LastCM = MONTH(LASTDATE('Feuil1 (2)'[date_de_la_facture]))
VAR LastFY = IF(LastCM <=8, LastCY, LastCY + 1)
VAR DatesTable =
CALENDAR("01/09/"&FirstFY, "31/08/"&LastFY)
RETURN
ADDCOLUMNS(DatesTable,
"Year", YEAR([Date]),
"FiscalYear", "FY" &IF(MONTH([Date]) >=9, YEAR([Date]) + 1, YEAR([Date])),
"CalendarMonth", MONTH([Date]),
"FiscalMonth", IF(MONTH([Date]) >= 9, MONTH([Date]) - 8, MONTH([Date]) + 4),
"CalendarQuarter", QUARTER([Date]),

"FiscalQuarter", "Q"& IF(MONTH([Date]) >= 7, QUARTER([Date]) - 2, QUARTER([Date]) + 1),

"FY&YQuarter", "FY" & IF(MONTH([Date]) >= 9, YEAR([Date]) + 1, YEAR([Date])) &  " - Q" & IF(MONTH([Date]) >= 9, QUARTER([Date]) - 2, QUARTER([Date]) + 2),
"Month&Year", FORMAT([Date], "mmm yyyy"),
"MonthOrderID", IF(MONTH([Date]) >=9, YEAR([Date]) + 1, YEAR([Date])) * 100 + IF(MONTH([Date]) >= 9, MONTH([Date]) - 8, MONTH([Date]) + 4),
"WeekDay", IF(WEEKDAY([Date], 2) < 6, "WeekDay", "Weekend"),
"Day", FORMAT([Date], "dddd"))
0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors