Forum Discussion

JimJim's avatar
JimJim
Responsive Resident
2 years ago
Solved

Sort one column by another - messy data

Hi Guys,   I have a report: products.pbix and am trying to sort output by output_description output_description by output so that the sort order on my slicer is more user friendly, but the problem ...
  • Ritaf1983's avatar
    Ritaf1983
    2 years ago

    JimJim 

    This is the opposite of what you asked in the original question 🙂

    And it's solvable. Here are the steps you need to take:

    1. From PQ duplicate table :

    2. Remove all the columns except 2 needed :

    3. Remove duplicates from output description:

    4. Filter out "null" (if you have)

    5. Close and apply

    6. create a relationship between the sort table and the main table

    7. In the sorting table apply a wanted sorting logic :

    8. Use the sorting table as a slicer, it will filter the main table due to their relationship :

    The pbix is attached

    If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly