This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi all,
I need to sort months in the custom order in matrix table
April
May
June
.
.
.
March
Please help how to do it?
edit:
The Month column is text type.
Solved! Go to Solution.
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
Thank you guys. I got it. Selected the month from date Hierarchy and its done. I dont know how but it worked.
Thank you all.
Please close this thread.
Thank you guys. I got it. Selected the month from date Hierarchy and its done. I dont know how but it worked.
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.
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
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.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 25 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 24 | |
| 19 |