Forum Discussion
Sector Name sorting not working in Water Fall Chart ( Power BI )
Hi ,
I have created a water fall chart using columns below.
And the chart looks like below.
The issue is i need to show Diversied Vehicle , Healthcare , Hightech , Industrial products to show from the left as they are categorized as premium and rest followed Non-premium values irrespective of NRPP measure value (Net Revenue Per piece ).
Sample data.
| Year | Sector_name | Premium_Flag | NRPP x Fuel |
| 2024 | Apparel and Consumer Goods | Non-Premium | 33.55 |
| 2024 | Diversified Vehicles & Parts | Premium | 36.08 |
| 2024 | Government | Non-Premium | 32.25 |
| 2024 | Healthcare | Premium | 35.87 |
| 2024 | High Tech | Premium | 45.12 |
| 2024 | Industrial Products | Premium | 44.23 |
| 2024 | Other | Non-Premium | 42.89 |
| 2024 | Professional Services | Non-Premium | 46.12 |
| 2024 | Unclassified | Non-Premium | 43.9 |
| 2025 | Apparel and Consumer Goods | Non-Premium | 33.69 |
| 2025 | Diversified Vehicles & Parts | Premium | 37.54 |
| 2025 | Government | Non-Premium | 35.57 |
| 2025 | Healthcare | Premium | 35.24 |
| 2025 | High Tech | Premium | 48.29 |
| 2025 | Industrial Products | Premium | 43.28 |
| 2025 | Other | Non-Premium | 44.19 |
| 2025 | Professional Services | Non-Premium | 46.02 |
| 2025 | Unclassified | Non-Premium | 49.04 |
Could you please assit me to fix this issue . thanks for your support in advance.
Regards,
Bhaskar
What can work in this case is to create a custom sort column and then use it as the Sort by Column for Sector_name. Once that is in place, the Waterfall chart will respect the sequence that you define manually.
1. Create a custom sort column (Power Query – recommended)
In Power Query, add a new column that defines the desired order explicitly. For example:PremiumSort = if [Premium_Flag] = "Premium" then if [Sector_name] = "Diversified Vehicles & Parts" then 1 else if [Sector_name] = "Healthcare" then 2 else if [Sector_name] = "High Tech" then 3 else if [Sector_name] = "Industrial Products" then 4 else 10 // other Premium sectors, if any else 20 // Non-Premium sectors
Load the data back into the model once this column has been created.2. Apply “Sort by Column” to Sector_name in Power BI DesktopIn the Fields pane:- Select the Sector_name column.
- On the Column tools tab, click Sort by Column.
- Choose the newly created PremiumSort column.
From this point on, whenever Sector_name is used in a visual (including the Waterfall chart), it will follow the sequence defined by the PremiumSort column.
2 Replies
- Zanqueta
Super User
What can work in this case is to create a custom sort column and then use it as the Sort by Column for Sector_name. Once that is in place, the Waterfall chart will respect the sequence that you define manually.
1. Create a custom sort column (Power Query – recommended)
In Power Query, add a new column that defines the desired order explicitly. For example:PremiumSort = if [Premium_Flag] = "Premium" then if [Sector_name] = "Diversified Vehicles & Parts" then 1 else if [Sector_name] = "Healthcare" then 2 else if [Sector_name] = "High Tech" then 3 else if [Sector_name] = "Industrial Products" then 4 else 10 // other Premium sectors, if any else 20 // Non-Premium sectors
Load the data back into the model once this column has been created.2. Apply “Sort by Column” to Sector_name in Power BI DesktopIn the Fields pane:- Select the Sector_name column.
- On the Column tools tab, click Sort by Column.
- Choose the newly created PremiumSort column.
From this point on, whenever Sector_name is used in a visual (including the Waterfall chart), it will follow the sequence defined by the PremiumSort column.
- bhaskarpbi9999
Helper I
Hi Zanqueta,
Thanks and kudos for your extreme support and i have tried this formula and working fine.
I am accepting the solution.
Thanks & Regards,
Bhaskar