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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Curious1_209
Frequent Visitor

How to order the display an hierarchy by another column

I have a hiearchy and it consists of two text columns (Class, Subclass). Now I have a clustered bar chart which has the hierarchy and two measures for totals.  In the chart, I need to order the display of Class according to the original order. I added an index column to the table, but there is no way for me to sort the display order by the index column. 

 

How to order the display of a hierarchy by another column? Thanks for help!

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

Hi @Curious1_209 ,


Please note that there can't be more than one value in Class for the same value in index.

You need to find something to order by that has the same granularity as index.something like below

Class Index
a 1
a 1
b 2

c

3

You can refer to this blog:

https://radacad.com/sort-a-column-with-a-custom-order-in-power-bi 


Best Regards,
Liang
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-lianl-msft
Community Support
Community Support

Hi @Curious1_209 ,


Please note that there can't be more than one value in Class for the same value in index.

You need to find something to order by that has the same granularity as index.something like below

Class Index
a 1
a 1
b 2

c

3

You can refer to this blog:

https://radacad.com/sort-a-column-with-a-custom-order-in-power-bi 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

DataInsights
Super User
Super User

@Curious1_209,

 

In the Data view, click on the column to be sorted. Then click the "Sort by column" button, and select the index column.

 

DataInsights_0-1645922445386.png

 





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

Proud to be a Super User!




Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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