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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Create a sort column with Dax

Hi all,

 

I apologize if this has been asked before but I am stuck and haven't been able to find anything too similar.

 

I'm looking to create a sort column in my data so that I can sort my matrix by multiple rows. Let's say my columns are conference, soccer team, and goals. I want to sort first by the conference and have that sort be descending by count of goals, then the second sort would be by a pre-defined hierarchy of the teams within each conference. So team A, B, and C are within the western conference, and their respective hierarchy values are 2,1, and 3, then it would be sorted like this:picc.PNG

Where the reason the West conference appears before the East is because the total sum of goals is greater. I've been stuck on this forever and would really appreciate some guidance. 

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@Anonymous 

There is a sort feature for power bi visual, try first sort [Goals] by a click, and then second sort [conference] by holding shift and click on the field name.

 

Paul Zheng _ Community Support Team
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

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@Anonymous 

There is a sort feature for power bi visual, try first sort [Goals] by a click, and then second sort [conference] by holding shift and click on the field name.

 

Paul Zheng _ Community Support Team
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

@Anonymous , I check it out that you will sort not able sort on measure and then sub sort on row column .

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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