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

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

Reply
James_White_199
Frequent Visitor

Help with sorting PowerBI Visuals not by calendar date

Hi All 

 

I need some help trying to arrange a powerBI Visual Stacked Column Chart in accordance with my financial year as opposed to calendar year. 

All my charts currently run from January to Dec and I need it to run from October to September. How can I do this?!

 

Thanks

James 

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@James_White_199 Add a new column in your data model to represent the fiscal year and fiscal month. You can do this using DAX 

DAX
FiscalYear = IF(MONTH([Date]) >= 10, YEAR([Date]), YEAR([Date]) - 1)
FiscalMonth = MONTH([Date]) - 9
FiscalMonth = IF(FiscalMonth <= 0, FiscalMonth + 12, FiscalMonth)

 

Ensure that the fiscal months are sorted correctly. You can create a custom sort order for the fiscal months.

DAX
FiscalMonthName = SWITCH([FiscalMonth],
1, "October",
2, "November",
3, "December",
4, "January",
5, "February",
6, "March",
7, "April",
8, "May",
9, "June",
10, "July",
11, "August",
12, "September"
)

 

Then, sort the FiscalMonthName column by the FiscalMonth column.

 

Replace the calendar year and month in your visual with the new fiscal year and fiscal month columns.

 

Ensure that the axis of your Stacked Column Chart uses the FiscalYear and FiscalMonthName columns to reflect the correct order.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@James_White_199 Add a new column in your data model to represent the fiscal year and fiscal month. You can do this using DAX 

DAX
FiscalYear = IF(MONTH([Date]) >= 10, YEAR([Date]), YEAR([Date]) - 1)
FiscalMonth = MONTH([Date]) - 9
FiscalMonth = IF(FiscalMonth <= 0, FiscalMonth + 12, FiscalMonth)

 

Ensure that the fiscal months are sorted correctly. You can create a custom sort order for the fiscal months.

DAX
FiscalMonthName = SWITCH([FiscalMonth],
1, "October",
2, "November",
3, "December",
4, "January",
5, "February",
6, "March",
7, "April",
8, "May",
9, "June",
10, "July",
11, "August",
12, "September"
)

 

Then, sort the FiscalMonthName column by the FiscalMonth column.

 

Replace the calendar year and month in your visual with the new fiscal year and fiscal month columns.

 

Ensure that the axis of your Stacked Column Chart uses the FiscalYear and FiscalMonthName columns to reflect the correct order.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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