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
Anonymous
Not applicable

Simple sort issue

For the love of god, I am not able to sort this priority in the visualization. I need the High and Medium in the order of Low, Medium, High, and Critical.

 

Hopeisgood1_0-1731009016205.png

I created a table to sort by column the Order. 

 

Hopeisgood1_1-1731009064192.png

 

Then I tried the sort by axis/legend - still wrong

 

Hopeisgood1_2-1731009218476.png

 

What am I missing or doing wrong here??

 

 

 

 

 

1 ACCEPTED SOLUTION

Here is the pbix .

Please select the Priority column, then click on Sort by and choose the Order column.

Gabry_0-1731014087505.png

 

View solution in original post

9 REPLIES 9
Gabry
Super User
Super User

Hey @Anonymous 

can't you just add a number before the text? 
Like 0 - Low, 1 - Medium, 2 - high ecc?

Not a satisfactory solution?

Anonymous
Not applicable

Won't work as the priority column has a relationship with the main table of the same name. 

 

Hopeisgood1_1-1731010017056.png

Hopeisgood1_2-1731010062619.png

 

 

 

 

 

 

Don't modify the column used for the relationship, but add a new column in the table Prioritisortorder with the number as prefix, then use this new column for the visual leggend.

 

Now I'm thinking that if you sort the priority column by order column should work also.

Go in the data view, then select the priority column, then sort by order column

 

Gabry_0-1731010659855.png

 

Anonymous
Not applicable

Tried - Nope 😕

 

Hopeisgood1_0-1731010877363.png

 

I even tried to sort by legend as well as Details...nope

 

Hopeisgood1_1-1731011044161.png

 

Also, it seems that in the screenshot you provided, you’re not sorting the priority column by order but rather sorting the order column itself.

Additionally, if you set up the order column this way, you should use the order column as the legend instead of the priority column.

Are you sure? I've tried with simple data and both the methods worked good.

Could you load your pbix?

Anonymous
Not applicable

I am not able to share the pbix due to company's policies 😕 

 

Is it possible you can show me the snapshots to what you did?

 

Here is the pbix .

Please select the Priority column, then click on Sort by and choose the Order column.

Gabry_0-1731014087505.png

 

Anonymous
Not applicable

THANK YOU!!!!

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.