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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
steven_j
Frequent Visitor

RANKX function but excluding low volume records

Hi all,

Below is an example of a table I have in Power BI.  I'm using the Rank function to show the top 5 emails by click rate.  The problem is I want to exclude the email with only 2 delivered emails.  Everynow and then I'll see an email with only a few records come through.  I want to add a condition to the rank function where it only ranks emails with x number of emails delivered.  Any ideas?

 

steven_j_1-1696444684651.png

 



 

1 ACCEPTED SOLUTION
steven_j
Frequent Visitor

I found the solution:

Click Rate Rank = IF([Total Emails Delivered] > 999,
    RANKX(FILTER(
    ALLSELECTED('Live Contact & Cross Sell'[Email Template]),[Total Emails Delivered]>999),[Click Rate],,DESC,Dense))

View solution in original post

1 REPLY 1
steven_j
Frequent Visitor

I found the solution:

Click Rate Rank = IF([Total Emails Delivered] > 999,
    RANKX(FILTER(
    ALLSELECTED('Live Contact & Cross Sell'[Email Template]),[Total Emails Delivered]>999),[Click Rate],,DESC,Dense))

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors