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

sorting in Matrix visualization

Hi Experts ,

I have matrix visualization where I need sorting on column

as currently I m getting the result as below 

          State 

Team   Awating User    On hold     In progress 

MM         1                            2                4 

FI             4                          5                   5

BI             5                         3                   4 

 

However,  I need  "In progress" as 1 st column   ,  "Awaiting user " as 2 nd  and On hold as 3rd  .

Kindly suggest .

 

Regards,

Ganesh Jagdhane 

1 ACCEPTED SOLUTION
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can create two calculated column, then use Status_2 Column to sort by rank column and use Status_2 Column as column header to meet your requirement:

 

Calculated Columns:

Status_2 = [Status]
Rank = SWITCH([Status],"In progress",1,"Awating User",2,3)

 

Sort by:

 

7.jpg

Matrix visual:

 

8.jpg


Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can create two calculated column, then use Status_2 Column to sort by rank column and use Status_2 Column as column header to meet your requirement:

 

Calculated Columns:

Status_2 = [Status]
Rank = SWITCH([Status],"In progress",1,"Awating User",2,3)

 

Sort by:

 

7.jpg

Matrix visual:

 

8.jpg


Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

Can you share sample data and sample output.Thanks.
Proud to be a Datanaut My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Daviejoe
Memorable Member
Memorable Member

Hi,

 

I'm not sure how your data is structured to answer properly, does the below help?

 

https://community.powerbi.com/t5/Desktop/Matrix-Column-Head-Order/m-p/71851#M29775

 

All the best David





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.