Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MichaelaMul
Helper III
Helper III

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 5
lbendlin
Super User
Super User

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.

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!



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!

Hi @MichaelaMul 

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!

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!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.