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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
gjadal
Microsoft Employee
Microsoft Employee

Top X with filter

I have a two charts displayed on my dashboard.

The first one displays a funnel for categories

The second one displays the top 10 items based on occurence.

When no category is selected, I want the overall top 10 items

But when a category is selected, I want the itemlist to be resorted to display the top 10 for that category.

Need a sample for doing this.

1 ACCEPTED SOLUTION

I have too done it with RANKX.  Check out this article:

 

http://www.daxpatterns.com/parameter-table/

 

Scroll to the section called Limit Top N Elements in a Ranking for an example where the N is dynamic (but then you may set it to 10 internally).

Connect with me in LinkedIn: https://pr.linkedin.com/in/adolfosocorro
Follow me on Twitter: https://twitter.com/AdolfoSocorro

View solution in original post

3 REPLIES 3
kcantor
Community Champion
Community Champion

While I do not currently have a sample available, I have successfully completed this by creating a RANKX based upon product performance and adding a filter to only show the top (or bottom) 25. As the slicers are selected the RANKX retains numerical order but filters out those that are not int he top performers.

You may also be able to use a version of TopN





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I have too done it with RANKX.  Check out this article:

 

http://www.daxpatterns.com/parameter-table/

 

Scroll to the section called Limit Top N Elements in a Ranking for an example where the N is dynamic (but then you may set it to 10 internally).

Connect with me in LinkedIn: https://pr.linkedin.com/in/adolfosocorro
Follow me on Twitter: https://twitter.com/AdolfoSocorro

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.