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
mh_vasconcelos
New Member

Sorting a matrix column containing strings and percentages

Hi guys!

 

I needed to sort from largest to smallest, but always placing the strings last (the field with the "Inconsistent" warning), but the strings appear first in the ranking.

Is there any way to display the matrix to place the percentages first, and the "Inconsistent" warnings last?

 

Captura de tela 2025-01-08 131129.jpg

 

Note: I know there is an alternative way to conditionally format the inconsistent values ​​with the color red, and leave them blank, for example, providing a caption explaining that the red color means "Inconsistent". However, I would like it to be possible to place the name "Inconsistent" in this column in the last positions, when we sort from largest to smallest.

Thank you in advance

1 ACCEPTED SOLUTION
speedramps
Super User
Super User

Create a another column

If the value "Inconsistent" then set it to a high maximum value

else set it to the column value

 

Then go into the data model and change the "sort by" for your colum by the new column.

 

Learn how here https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column

 

We are unpaid volunteers and you have got free expert help which took a lot of effort.
This solution works and does exactly what you asked.
So please quickly click the [accept as solution] and the thumbs up button to leave kudos.
If you need to change or extend your request then please raise a new ticket.
One question per ticket please !
You will get a quicker response and each volunteer solver will get the kudos they deserve.

 

If you quote @speedramps in your next tickets then I will then receive an automatic notification, and will be delighted to help you again.

 

However I decline to help impolite lazy members twice who ask misleading or incomplete questions and then dont accept the correct soltion.


Please now click the [accept as solution] and the thumbs up button. Thank you

View solution in original post

1 REPLY 1
speedramps
Super User
Super User

Create a another column

If the value "Inconsistent" then set it to a high maximum value

else set it to the column value

 

Then go into the data model and change the "sort by" for your colum by the new column.

 

Learn how here https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column

 

We are unpaid volunteers and you have got free expert help which took a lot of effort.
This solution works and does exactly what you asked.
So please quickly click the [accept as solution] and the thumbs up button to leave kudos.
If you need to change or extend your request then please raise a new ticket.
One question per ticket please !
You will get a quicker response and each volunteer solver will get the kudos they deserve.

 

If you quote @speedramps in your next tickets then I will then receive an automatic notification, and will be delighted to help you again.

 

However I decline to help impolite lazy members twice who ask misleading or incomplete questions and then dont accept the correct soltion.


Please now click the [accept as solution] and the thumbs up button. 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.