Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi,
The following graph is close to what I need but I have an issue about the X Axis which represents the 12 months of the year(s)
It displays one month out of two: if I display every month (Type = Category instead of Continuous) the months are sorted by decreasing Amount.
If I replace the numbers by the month name (Month_Txt) the months are once again sorted by decreasing Amount.
The sorting of Month_Txt according to Month_Num doesn’t work: the months are still sorted by decreasing Amount.
What I did wrong? My example file is here:
Thanks for your help
Solved! Go to Solution.
Hi GD61,
To make your chart sorted by Month_Num but keep Month_Txt on Axis. Please follow steps below:
1. Insert the Month_Txt into Axis, clear Month_Num. Then you will see your chart sorted by Amount in descreasing order.
2. Now you go the Sory By drop down unselect Amount, see screenshot below:
After that you chart will sorted by Month_Num as you expected.
I also attach the modified .pbix file.
@v-sihou-msft's answer is I think what you are looking for, however I would also recommend that you investigate date tables if you are not already using them.
There are various links below on different ways of doing it e.g. creating your own, generating it with DAX, downloading one from the data store etc. There are numerous benefits one being that you can create customer date columns which act as labels for your charts eg. (01) - Jan, (02) - Feb. This works particularly well for our business as our fiscal year is not the same as the calendar year.
Links:
http://kohera.be/blog/business-intelligence/how-to-create-a-date-table-in-power-bi-in-2-simple-steps...
http://www.powerpivotpro.com/2014/02/the-ultimate-date-tablerevisited/
http://www.powerpivotpro.com/2011/11/the-ultimate-date-table/
Hi GD61,
To make your chart sorted by Month_Num but keep Month_Txt on Axis. Please follow steps below:
1. Insert the Month_Txt into Axis, clear Month_Num. Then you will see your chart sorted by Amount in descreasing order.
2. Now you go the Sory By drop down unselect Amount, see screenshot below:
After that you chart will sorted by Month_Num as you expected.
I also attach the modified .pbix file.
@v-sihou-msft's answer is I think what you are looking for, however I would also recommend that you investigate date tables if you are not already using them.
There are various links below on different ways of doing it e.g. creating your own, generating it with DAX, downloading one from the data store etc. There are numerous benefits one being that you can create customer date columns which act as labels for your charts eg. (01) - Jan, (02) - Feb. This works particularly well for our business as our fiscal year is not the same as the calendar year.
Links:
http://kohera.be/blog/business-intelligence/how-to-create-a-date-table-in-power-bi-in-2-simple-steps...
http://www.powerpivotpro.com/2014/02/the-ultimate-date-tablerevisited/
http://www.powerpivotpro.com/2011/11/the-ultimate-date-table/
Hello,
I'll try, Thanks a lot
Hi,
If you change Month_Num to Month-Txt and then Sort by Month-Txt, it works fine.
click the ellipses in the top right corner, select Sort by and choose Month_Txt. If you need to change the sort order, click the ellipses again and click the AZ arrow to change it to Jan....Dec.
HTH,
Michele
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
84 | |
69 | |
68 | |
39 | |
37 |