Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Guys, I have a Matrix where my columns always have the 3 selected months and I would like to place them in order of month and year. As you can see, the ordering should be: November (2023), December (2023) and January (2024) but I'm not able to order it that way. How could I do this?
Solved! Go to Solution.
Hi @kasife
You can't sort months without years in chronological order.
There is no way for the engine to know when January is from last year and when from the next.
You should use some combination of year and month to make it work.
For example :
Which can be sorted by column with the logic:
Date.ToText([Date],"yyyyMM") from PQ
Pbix with my example and calendar table with the needed columns is attached.
More information about sorting by month and year is here :
https://www.youtube.com/watch?v=kHK6bnaD8ig
you can implement this in power bi, but how will the user understand that this is January 2022 or 2023 and so on
Hi @kasife
You can't sort months without years in chronological order.
There is no way for the engine to know when January is from last year and when from the next.
You should use some combination of year and month to make it work.
For example :
Which can be sorted by column with the logic:
Date.ToText([Date],"yyyyMM") from PQ
Pbix with my example and calendar table with the needed columns is attached.
More information about sorting by month and year is here :
https://www.youtube.com/watch?v=kHK6bnaD8ig
Happy to help 🙂
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
79 | |
58 | |
35 | |
32 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |