Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone,
I have a graph with on the x-axis the colum Week and the column Month and year. Due to the fact that some weeks will fall in two months (for example week 48 is the end of November and the start of December).
As you can see in the image below, I have an issue. I have the option to sort it ascending or descending, but due to the new year, I am not able to get it in the right order. How can I solve this?
Solved! Go to Solution.
@Anonymous , Create a new column
Month Week Year = FORMAT([Date],"mmm-yyyy") & format([Weeknum], "00")
Month Week Year sort = FORMAT([Date],"yyyymm")*100 + [Weeknum]
and Try
Hi @amitchandak ,
Thanks for your reply 🙂
It is sorted in the right order. When I remove the column week, I get this results. And that is correct. It is just that I can't filter on month and year first, and then filter on week...
@Anonymous , Not sure what format you need.
But add month year and week on axis.
Concatenate label - off
sort on month year and week (sometime, it shows the Concatenate label = off, even when it is on, then repeat step)
You should get something like this in screenshot
@amitchandak thank you. Unfortunately, that is not what I mean. I want it shown per week, including month and year, but due to the start of this new year, it messes up the order. I have made a screenshot and drawn a line how to logical order should be like.
@Anonymous , Create a new column
Month Week Year = FORMAT([Date],"mmm-yyyy") & format([Weeknum], "00")
Month Week Year sort = FORMAT([Date],"yyyymm")*100 + [Weeknum]
and Try
Thank you very much! The order is restored. The problem was that the date field was using a different methodolgy. So adding a column with the formula weeknummer and choosing system 1 (https://docs.microsoft.com/nl-nl/dax/weeknum-function-dax) was enough
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 127 | |
| 88 | |
| 78 | |
| 66 | |
| 65 |