This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I try to display measures with an axis made of Months in the format YY-MM
If I sort in Ascending order, May 2021 ends up after Dec 2021...
If I sort descending, it's still wrong!
Any idea why is the X axis not sorted properly?
Solved! Go to Solution.
Hi @EricMamet ,
please check you "Sort by"
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Indeed, it was solved by using the sort... option.
I would have thought logical to order by default by my X Axis values but it was not the case.
Thanks
X axis is text and not a number that's why during sort it is messing up the order.
Try to create a new column where YearMonth will be in the following formay YYYYMM.
YearMonth= FORMAT('Calendar'[Date], "YYYYMM")
Make sure it is of datatype 'wholenumber' and not text
Now Go to model section and sort the column which is shown on X axis in the diagram based on the newly created column. See image below
Hi @themistoklis ,
this should not be the problem, because even in alphanumeric sorting the dates have the correct order.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @EricMamet ,
please check you "Sort by"
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Check out the April 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 |
|---|---|
| 39 | |
| 28 | |
| 27 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 37 | |
| 32 | |
| 26 | |
| 25 |