Forum Discussion

MichaelaMul's avatar
MichaelaMul
Helper III
1 year ago

Filter based on Switch Function that has a Top N Ranking

Hi,

I was wondering if the following is possible:

I would like to update my Brand filter to be grouped by the following:

- Our Brand ( a specific set of brands)

- DFA Brand ( a specific set of brands)

- Top 15 Brand (based on Top N by Volume Sales)

 

 

here's some dummy data:

Group ByBrandCategoryVolume Sales
DFA BrandsD BrandCategory 110450
DFA BrandsF BrandCategory 310000
DFA BrandsA BrandCategory 19913
Our BrandOur Branded ApplesCategory 112000
Our BrandOur Branded OrangesCategory 23200
Our BrandOur Branded StrawberriesCategory 13500
Top 15 Brands (by Volume Sales)Our Branded ApplesCategory 112000
Top 15 Brands (by Volume Sales)D BrandCategory 110450
Top 15 Brands (by Volume Sales)Blue BrandCategory 110200
Top 15 Brands (by Volume Sales)Pink BrandCategory 110100
Top 15 Brands (by Volume Sales)Yellow BrandCategory 19999
Top 15 Brands (by Volume Sales)A BrandCategory 19913
Top 15 Brands (by Volume Sales)Dog BrandCategory 19124
Top 15 Brands (by Volume Sales)Fox BrandCategory 18975
Top 15 Brands (by Volume Sales)Cat BrandCategory 18645
Top 15 Brands (by Volume Sales)Purple BrandCategory 18210
Top 15 Brands (by Volume Sales)Teal BrandCategory 17900
Top 15 Brands (by Volume Sales)Sheep BrandCategory 17000
Top 15 Brands (by Volume Sales)ABCD BrandCategory 16300
Top 15 Brands (by Volume Sales)EFGH BrandCategory 16000
Top 15 Brands (by Volume Sales)JKL BrandCategory 15000

5 Replies

  • yes, "sort a column by another column" - add a sort index column to your data that indicates the order in which the groups should appear.

    • v-aatheeque's avatar
      v-aatheeque
      Community Support

      Hi MichaelaMul ,
      Thanks for reaching out to Microsoft Fabric Community Forum.
      lbendlin Thanks for you quick response in additon that 

      you can refer this below doc regarding the sorted colums.

      Sort a Column with a Custom Order in Power BI - RADACAD

      If our response addressed by the community member for your query, please mark it as Accept Answer and click Yes if you found it helpful.

      Should you have any further questions, feel free to reach out.
      Thank you for being a part of the Microsoft Fabric Community Forum!



      • v-aatheeque's avatar
        v-aatheeque
        Community Support

        Hi MichaelaMul ,


        We haven’t heard back from you regarding our previous response and wanted to check if your issue has been resolved.

        If it has, please consider clicking “Accept Answer” and “Yes” if you found the response helpful.
        If you still have any questions or need further assistance, feel free to let us know — we're happy to help!

        Thank you!