Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
hello,
I have a farily complex star schema model that requires a slicer with a hierarchy.
The problem: I want my slicer have the same ordering of each level in the hierarchy. Each level of the hierarchy is defaulting to alphabetical sorting in the slicer, except for the lowest, Class, which is sorted by the Sort column.
The dummy dimension is as follows:
Sort | Class | Class Group | Class Region | Class Portfolio |
1 | Tim | Lamb Class | Baby Animal | Class Portfolio 1 |
2 | Sunny | Lamb Class | Baby Animal | Class Portfolio 1 |
3 | Sue | Lamb Class | Baby Animal | Class Portfolio 1 |
4 | Boyd | Chicken Class | Animal | Class Portfolio 1 |
5 | Fallon | Chicken Class | Animal | Class Portfolio 1 |
6 | Daisy | Beef Class | Animal | Class Portfolio 1 |
7 | Stewart | Beef Class | Animal | Class Portfolio 1 |
8 | Onion | Vegetable Class | Vegetable | Class Portfolio 2 |
9 | Pepper | Vegetable Class | Vegetable | Class Portfolio 2 |
The issue I have is that the slicer alphabetically sorts the Group, Region, and Portfolio columns, but i want them all to be sorted via the sort column. However when I try this, I get an error message that says there can't be more than one value in the (Class group, Class Region, Class Portfolio) column for each value in the sorting column...
I have tried this sqlbi custom sorting solution located here:
https://www.sqlbi.com/articles/sorting-duplicated-names-in-a-level-of-a-hierarchy-with-dax/
But this does not produce the result that I want and creates multiple values at each level.
I also tried a snowflake arrangement for each level of the hierarchy. But I am not sure this is the right approach as i was not able to create a single hierarchical slicer.
All I want is for each level of the slicer to have one value and each of those values to be sorted with the same ordering as the underlying Class sort.
My desired output would have each level of the slicer look something like this (i.e matching the order of the underlying sort):
Slicer:
Any suggestions would be greatly appreciated.
Solved! Go to Solution.
Hi @SDSolutions ,
Each class column needs to have its own sort column. You current sort colum applies only to Class but when applied to Class Group or Class Region it will cause an error because a unique item in either of these columns, take Lamb Class as an example, has more than one sort numbers (1,2,3) which is ambiguous.
Turns out there was some erroneous data in the source data preventing the sorting from occurring. Thanks for your help.
Hi @SDSolutions ,
Each class column needs to have its own sort column. You current sort colum applies only to Class but when applied to Class Group or Class Region it will cause an error because a unique item in either of these columns, take Lamb Class as an example, has more than one sort numbers (1,2,3) which is ambiguous.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.