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
Varshi288
Resolver II
Resolver II

Hierarchal sorting

Hi All,

 

I have some difficulties in sorting based on two columns, Region and Sales region in a slicer. In a table view I can do this. I can sort based on Region. But need to sort based two columns. Need inputs. thanks in advance.

4856e524-85bb-478c-bb22-04ef5be8341a.jpgCurrent Sort.Current Sort.

 

1 ACCEPTED SOLUTION

I did add the sort number sales region and tried to sort in the table view.I got the below error.

 

Varshi288_0-1743062667431.png

 

 

View solution in original post

5 REPLIES 5
Varshi288
Resolver II
Resolver II

It worked after creating a new table Sales Region Sort.

 

Thanks

Hi @Varshi288 , We are happy to hear that you have found the cause and resolved the issue. Thanks for sharing the details here.  Please mark your insights 'Accept as solution' to help others with similar problems find it easily. 
Thank you.

Deku
Super User
Super User

You can add a extra column that you define interger that represent the custom sort order of a to sort each column

 

You can can a calculated column like this

 

Switch(

Table[country],

"north Europe", 1

"Central Europe", 2

...

)

 

The Docs describe how to apply the new sorting column


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

I did add the sort number sales region and tried to sort in the table view.I got the below error.

 

Varshi288_0-1743062667431.png

 

 

A single region should not be represented by multiple numbers and a different number should be used per each region


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

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.