Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi @vinayvascuri ,
To resolve the issue of sorting months in the correct order in your Power BI Waterfall chart, you need to ensure the "MonthName" field is sorted by a column representing the chronological order of months. Here’s how to fix it:
Create a Sort Order Column:
MonthOrder = MONTH(DATEVALUE("1 " & [MonthName]))This will assign a numeric value (1-12) to each month based on its chronological order.
Sort "MonthName" by "MonthOrder":
Apply the Sorting to Your Chart:
Also it will be better if you will create a dimension calendar table and create a column for month name, month number , year . It will help to sort easily.
Screenshot for example:
Please mark this as solution if it helps you. Appreciate Kudos.
Thanks for the reply from FarhanJeelani , please allow me to add some more information:
Hi @vinayvascuri ,
As far as I know, Power BI's default sorting is based on alphabetical order, so using a directly created [Month] won't sort in normal month order, you can use the following two ways.
Way 1:
You can directly use Month in the date hierarchy, which will be sorted by month.
Please see the following link for an updated letter on the date hierarchy::
Auto date/time in Power BI Desktop - Power BI | Microsoft Learn
Way 2:
You can create a relational join with a date table with a month and a minimum date, set Sort by column.
1. Create calculated table.
Table 2 =
SUMMARIZE('Table',[Month],"mindate",MINX(FILTER(ALL('Table'),[Month]=EARLIER([Month])),[Date]))
2. Select [Month] – Column tools – Sort by column – [mindate].
3. Joining two tables.
4. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Thanks for the reply from FarhanJeelani , please allow me to add some more information:
Hi @vinayvascuri ,
As far as I know, Power BI's default sorting is based on alphabetical order, so using a directly created [Month] won't sort in normal month order, you can use the following two ways.
Way 1:
You can directly use Month in the date hierarchy, which will be sorted by month.
Please see the following link for an updated letter on the date hierarchy::
Auto date/time in Power BI Desktop - Power BI | Microsoft Learn
Way 2:
You can create a relational join with a date table with a month and a minimum date, set Sort by column.
1. Create calculated table.
Table 2 =
SUMMARIZE('Table',[Month],"mindate",MINX(FILTER(ALL('Table'),[Month]=EARLIER([Month])),[Date]))
2. Select [Month] – Column tools – Sort by column – [mindate].
3. Joining two tables.
4. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @vinayvascuri ,
To resolve the issue of sorting months in the correct order in your Power BI Waterfall chart, you need to ensure the "MonthName" field is sorted by a column representing the chronological order of months. Here’s how to fix it:
Create a Sort Order Column:
MonthOrder = MONTH(DATEVALUE("1 " & [MonthName]))This will assign a numeric value (1-12) to each month based on its chronological order.
Sort "MonthName" by "MonthOrder":
Apply the Sorting to Your Chart:
Also it will be better if you will create a dimension calendar table and create a column for month name, month number , year . It will help to sort easily.
Screenshot for example:
Please mark this as solution if it helps you. Appreciate Kudos.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
92 | |
75 | |
65 | |
49 | |
37 |
User | Count |
---|---|
114 | |
89 | |
80 | |
60 | |
40 |