Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MisterDave
Frequent Visitor

Sorting multiple columns by High, Medium, Low

Hello all

 

I'm trying to sort multiple columns which all have the same values (High, Medium, Low) so that when I visualise them they show in order of severity. I can do it for an individual column by creating a table and using that to sortby but the new column will only sort one column. Equally, if I create a new table and column for each one I wish to sort, I get a message saying ''There can't be more than one value in 'New column' for the same value in Risk 2' (where New Column is the column created to establish the hierarchy of H,M,L).

 

The data looks something like this:

 

Location                       Risk 1     Risk 2        Risk 3          Risk 4          

Country 1                    High       Low           Medium      High             

Country 2                    High       Medium    Low             Medium        

Country 3                    Low        Low           Medium      Low

 

Can any body help? THere must be an easier way to do this! All I want is to be able to sequence the axes in my visualisations by H,M,L rather than alphabetically or numerically.

 

Many thanks. 

 

 

 

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @MisterDave,

 

I'm wondering if could try unpivoting the risk columns first in Query Editor, then sort the only Value column(of course you can rename it) to get the expected result in your scenario.

 

unpivot.PNG

 

For more details about how to Pivot and Unpivot with Power BI, you can refer to this article. Smiley Happy 

 

Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @MisterDave,

 

I'm wondering if could try unpivoting the risk columns first in Query Editor, then sort the only Value column(of course you can rename it) to get the expected result in your scenario.

 

unpivot.PNG

 

For more details about how to Pivot and Unpivot with Power BI, you can refer to this article. Smiley Happy 

 

Regards

Many thanks. I'll give it a go later and report back. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.