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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
crln-blue
Post Patron
Post Patron

Make hierarchy sort by its item ID not alphabetical

Hello!

 

I made a hierarchy using the Path Function and when I used it to the Matrix table, it automatically sorts alphabetically. Is there a way for the hierarchy to NOT sort alphabetically? I fixed my item ID since I'm assuming that the sort will follow the item ID but it does not.

The sort by item ID is important because it's already arranged in my desired sort.

 

Thanks!

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

@crln-blue , You need to sort the column by ID. Please select the colum you want to sort and under column tools, you will find the option to do so.Capture.PNG

 

Please note: Both the columns should be in the same table.

 

Did I solve your problem?

If yes, please mark my solution Accepted!

View solution in original post

I finally saw this feature. I noticed that in the report view, I need to highlight the column to be sorted and the button will appear where I can set which sort column to be used. Thanks!

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@crln-blue , You can create a sort column and use that.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column

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

Hello @amitchandak ,
Thanks for the link. I tried it but I think the column that will be used for sorting should also be on my visual. Unfortunately, I can't try the other method because my table is a DAX table.

Anonymous
Not applicable

@crln-blue , You need to sort the column by ID. Please select the colum you want to sort and under column tools, you will find the option to do so.Capture.PNG

 

Please note: Both the columns should be in the same table.

 

Did I solve your problem?

If yes, please mark my solution Accepted!

I finally saw this feature. I noticed that in the report view, I need to highlight the column to be sorted and the button will appear where I can set which sort column to be used. Thanks!

Hello @Anonymous ,

I tried the method you told me but it's still not reflecting. I didn't add the column on the visual since I don't need it. I just want it to be sorted in that way. 
My data is like this:

crln-blue_3-1607963853089.png

My expected output

  • Collections
  • Total Materials
    • Imported
    • Local
  • Operating Costs
    • Rent 
    • Electricity

 

Ouput from Matrix Table

  • Collections
  • Operating Costs
    • Electricty
    • Rent
  • Total Materials
    • Imported
    • Local

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.