Forum Discussion

Gopal_PV's avatar
Gopal_PV
Icon for Helper III rankHelper III
1 year ago
Solved

How sort Switch column values with other order column in power bi

Hi Friends, I have imported snowflake view in to Power bi. Now I have created new column using switch for Bucket list of units. Now i want to  order the same bucket list. I want to use same bucket f...
  • Shahid12523's avatar
    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.