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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
umairarshad
Helper II
Helper II

Sort month in matrix Table

Hi all,

 

I need to sort months in the custom order in matrix table

April

May

June

.

.

.

March

 

umairarshad_0-1717235344802.png

 

Please help how to do it?

 

 

edit:

 

The Month column is text type.

 

umairarshad_0-1717235928183.png

 

2 ACCEPTED SOLUTIONS
danextian
Super User
Super User

Hi @umairarshad ,
Your month ( text string) should be custom sorted by another column else it will be sorted alphabetically. Create a custom sort column depends on your data model. If you have  separate dates table (which is the good practice), you can create a calculated column MONTH(datestable[date]). If you're using a column from your fact table and month name  is just the month name of a date in your fact t able, you can use the same method. If you are using that  month column that is already in  fact table and there are no dates, you need to create a custom column in Power Query say if [month] = "January" then 1 else if  [month] = "February" else 2 ... else 12

danextian_0-1717236306619.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

umairarshad
Helper II
Helper II

Thank you guys. I got it. Selected the month from date Hierarchy and its done. I dont know how but it worked.

 

umairarshad_0-1717236789995.png

 

umairarshad_1-1717236856233.png

 

Thank you all.

 

Please close this thread.

 

View solution in original post

4 REPLIES 4
umairarshad
Helper II
Helper II

Thank you guys. I got it. Selected the month from date Hierarchy and its done. I dont know how but it worked.

 

umairarshad_0-1717236789995.png

 

umairarshad_1-1717236856233.png

 

Thank you all.

 

Please close this thread.

 

That will work because, in the background, it is being sorted by another column. It is good for beginners but you'll eventually learn that it isn't a good practice. 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
danextian
Super User
Super User

Hi @umairarshad ,
Your month ( text string) should be custom sorted by another column else it will be sorted alphabetically. Create a custom sort column depends on your data model. If you have  separate dates table (which is the good practice), you can create a calculated column MONTH(datestable[date]). If you're using a column from your fact table and month name  is just the month name of a date in your fact t able, you can use the same method. If you are using that  month column that is already in  fact table and there are no dates, you need to create a custom column in Power Query say if [month] = "January" then 1 else if  [month] = "February" else 2 ... else 12

danextian_0-1717236306619.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Ritaf1983
Super User
Super User

Hi @umairarshad 

Please refer to my solution in the linked discussion.

It includes PBIX with the example and link to the video guide.

https://community.fabric.microsoft.com/t5/Desktop/How-to-get-line-chart-sorted-by-month/m-p/3241078

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.