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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.