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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
schwinnen
Helper V
Helper V

Top N with minimum number of records

I have a table showing the top N customers for a specific category.  However, some of these customers only have one transaction and I really don't want to display these as one time issues don't mean a lot to me.  So I want to show the top N customers that have a minimum number of transactions.  Right now, everything I've tried displays the top N and then filters those by the minimum number of transactions.  In other words, I start off with the top 5.  Out of those, four only have one transaction.  So when I apply the filter for a minimum number of transactions, I'm left with only one customer.  I want the list to always display the top 5, but the customers on the list would change as I change the minimum number of transactions.

1 REPLY 1
v-cherch-msft
Employee
Employee

Hi @schwinnen

 

It seems you need a parameter and create the measure with RANKX Function. Please have a look at below post. If it is not your case, please share some data sample and expected output. You can upload it to OneDrive or Dropbox and post the link here.

How to Get Your Question Answered Quickly

 

https://www.fourmoo.com/2018/02/06/dax-power-bi-dynamic-topn-made-easy-with-what-if-parameter/

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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