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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Sort chart by month hierachy, but not name

Hello All,

I have the issue that I can't sort chart by month logic (hierarcy). It sorts months by alphabetical order.

 

bogachev_0-1612863824719.png

 

How to change it?

If I do additional column with month number, how to add it to sorting?

Thank you!

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Anonymous 

Download your sample PBIX with solution

If you create a column that uses the same date for each separate date in the month and use that column as your axis, this achieves what you want.

sortcol.png

sortcols.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

5 REPLIES 5
PhilipTreacy
Super User
Super User

Hi @Anonymous 

Download your sample PBIX with solution

If you create a column that uses the same date for each separate date in the month and use that column as your axis, this achieves what you want.

sortcol.png

sortcols.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Thank you so much for your help!

Tahreem24
Super User
Super User

@Anonymous , Can you share some more context on column you used on X-Axis for Month?

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
PhilipTreacy
Super User
Super User

Hi @Anonymous 

How exactly is your data structured?  Are you using real dates in a Date column? 

If I create some sample data 

sd.png

 

It sorts correctly by date if you just add date to the Axis - set it to Date not the hierarchy.

 

dato.png

 

axsor.png

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Hello @PhilipTreacy ,

I made test file https://hpe-my.sharepoint.com/:u:/p/bogachev/Eekmw21xueZGiDTyOwXbqfMBkMOS246t9x4vGT3GAi_MUw?e=DwxKlq

I tried to add as "date", but not hierarchy - unfortunately doesn't work for me 😞

Could you be so kind to check it?

Thank you!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.