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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
coolie
Helper I
Helper I

Month Order in stacked column chart

There have been several supposed answers to this question, but often end up in a Desktop solution! I have produced the first image with year and month name columns (extracted from a run date field) in my table in the X axis, which is fine except the month order is wrong:support_powerbi_monthsort.png

In the second image I have used the date field directly and used a custom format to extract the month name, but this is also wrong. How do I get the first image to sort correctly using bi report service? (ie not using bi desktop)

2 ACCEPTED SOLUTIONS
v-echaithra
Community Support
Community Support

Hi @coolie ,

Thank you for reaching out to Microsoft Community.

Ensure your month name is sorted by a numeric month value and this needs to be present in your data model.
If your table already has something like:
MonthName = "January", "February", etc.
MonthNumber = 1, 2, 3, ..., 12

Now in the Data Modelling tab, click on the MonthName column
Choose Sort by Column > Month number
Refresh your visual, the months will now appear in the correct order.


To avoid repetition of month names as shown in the second chart, make sure your visual X-axis field is not too granular. Grouping by Year and Month number instead of full date helps.

Hope this will help.
Best Regards,
Chaithra E.

View solution in original post

Turns out much simpler than this - you create your date hierarchy in the semantic model in the way it describes in the link above, but as long as you have a date field in your table you dont need to a separate dimension table. You can create a view to add the other fields in the hierarchy if necessary.

View solution in original post

3 REPLIES 3
coolie
Helper I
Helper I

Managed to sort it using this link from MS but still took some working out. Downside with this is that you have to have all possible dates in the dimension table you create, so not really the best solution:

Solved: Re: Missing Date Hierachy Lakehouse Model - Microsoft Fabric Community

 

Turns out much simpler than this - you create your date hierarchy in the semantic model in the way it describes in the link above, but as long as you have a date field in your table you dont need to a separate dimension table. You can create a view to add the other fields in the hierarchy if necessary.

v-echaithra
Community Support
Community Support

Hi @coolie ,

Thank you for reaching out to Microsoft Community.

Ensure your month name is sorted by a numeric month value and this needs to be present in your data model.
If your table already has something like:
MonthName = "January", "February", etc.
MonthNumber = 1, 2, 3, ..., 12

Now in the Data Modelling tab, click on the MonthName column
Choose Sort by Column > Month number
Refresh your visual, the months will now appear in the correct order.


To avoid repetition of month names as shown in the second chart, make sure your visual X-axis field is not too granular. Grouping by Year and Month number instead of full date helps.

Hope this will help.
Best Regards,
Chaithra E.

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.