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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Rnaval
Helper V
Helper V

How do sort a matrix visual?

How do I sort a matrix visual using two separate columns, see below. I'm looking to sort by Severity column first in the following order (Critical, High, Medium and Low) and then by the Total Count coulmn in descending order.

 

Rnaval_0-1742233663603.png

 

1 ACCEPTED SOLUTION
kushanNa
Super User
Super User

Hi 

 

do you have all these data in power query side ? then this should be less trouble

 

follow the following steps 

 

1. first create a severity order custom column 

 

= if [Severity] = "Critical" then 1 
    else if [Severity] = "High" then 2 
    else if [Severity] = "Medium" then 3 
    else if [Severity] = "Low" then 4 
    else null

 

2. sort it by new created column

3. sort it by total count 

4. create an index column 

kushanNa_0-1742308179971.png

 

5.apply changes

6. click on vulnerability title and sort it by index

kushanNa_1-1742308315124.png

 

7. sort it again by ASC if it do not get sorted properly 

kushanNa_2-1742308377920.png

 

 

kushanNa_3-1742308396670.png

 

View solution in original post

4 REPLIES 4
kushanNa
Super User
Super User

Hi 

 

do you have all these data in power query side ? then this should be less trouble

 

follow the following steps 

 

1. first create a severity order custom column 

 

= if [Severity] = "Critical" then 1 
    else if [Severity] = "High" then 2 
    else if [Severity] = "Medium" then 3 
    else if [Severity] = "Low" then 4 
    else null

 

2. sort it by new created column

3. sort it by total count 

4. create an index column 

kushanNa_0-1742308179971.png

 

5.apply changes

6. click on vulnerability title and sort it by index

kushanNa_1-1742308315124.png

 

7. sort it again by ASC if it do not get sorted properly 

kushanNa_2-1742308377920.png

 

 

kushanNa_3-1742308396670.png

 

One last question - is there a way to hide a column in the matrix visual?

Rnaval
Helper V
Helper V

Tried Shift Key press on both columns but then Severity of Low appears before Medium. Is there a way to control via DAX?

sevenhills
Super User
Super User

Did you try, by <SHIFT> key pressed and select multiple columns of your desire ?

 

Or you are looking for DAX to control it ? 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.