Forum Discussion
How sort Switch column values with other order column in power bi
- 1 year ago
- Create a lookup table with unique bucket names and order:
- DIY → 1
- Small → 2
- Medium → 3
- Enterprise → 4
- DG Enterprise → 5
- Fix naming in your SWITCH logic so it matches the lookup table exactly.
- Sort the lookup table’s Units_Bucket column by Bucket_Order.
- Use the lookup table’s Units_Bucket in your slicer for correct order and clean filtering.
Let me know if you want a one-table workaround or multilingual slicer support too.
Without sample data, I can only suggest ot rewrite the column
Units_Bucket_Order =
If this helped, please consider giving kudos and mark as a solution
me in replies or I'll lose your threadWant to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Hi FBergamaschi .
Now i am facing cercular depency error. Please find the pbix file in the attachment.
Thank you