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
Meera556
Helper I
Helper I

Top 5, 10 values using Dynamic slicer

I was creating a report which contains the columns product name,sales and count of errors.I want to show the top N products based on the sales column.As of now I was using the visual level filter and applying Top 5 products.But I want to show that Top N as slicer and when the user selects 10 then it should display top 10 and top 15 if they select 15.By default it should display top 5 products.

Can anyone help with this.

Thanks for your help in advance

3 REPLIES 3
vicky_
Super User
Super User

The very first part of this blog post (under Filtering the top N products) should get you that result: https://www.sqlbi.com/articles/filtering-the-top-products-alongside-the-other-products-in-power-bi/

you can basically ignore the later sections talking about the "other" parts (unless that's what you're going for)

Hi @vicky_ 

 

Thanks for your solution its working fine.

But when I'm adding basic filtering option like show values when its not blank like removing null values the top N filter is not working properly.

For example if im selecting top 5 values its showing 4 its resulting me in N-1 values

When removed the filter its working fine

Could you please help me with this.

Ahmedx
Super User
Super User

refer to the following

https://www.youtube.com/watch?v=YFl4kb_06aM

 

 

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.