March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
Proud to be a Super User!
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.
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |