Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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!
Solved! Go to Solution.
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.
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.
In the Data view, click on the column to be sorted. Then click the "Sort by column" button, and select the index column.
Proud to be a Super User!
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |