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
daxBeanz
Regular Visitor

Filter Rows where Count > Percentile Value Measure

I have a table skills that has a column called CanonicalValue and it has two measures: SkillCount and X_PercentileValue

 

SkillCount = CALCULATE(COUNTAX(skills,skills[CanonicalValue]))

 

X_Percentile_Value = 
VAR SummaryTable =
    SUMMARIZE (
        'skills',
        skills[CanonicalValue],
        "Count", [SkillCount]
    )
RETURN
PERCENTILEX.INC(SummaryTable,[Count],Parameter[Parameter Value])

I want to create a third measure that evaluates whether X_Percentile_Value is greater than SkillCount. 

 

This is my current visual layout.daxBeanz_0-1704741853727.png

The CanonicalValue column has duplicates and the SkillCount measure reflects the counts correctly.

1 ACCEPTED SOLUTION
v-tianyich-msft
Community Support
Community Support

Hi @daxBeanz ,

 

What do I need to do after the comparison? You can simply determine this with an if expression.

Greater = IF([X_Percentile_Value]>[SkillCount ],1,0)

 

Please feel free to correct me and provide more information if I have misunderstood you!

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-tianyich-msft
Community Support
Community Support

Hi @daxBeanz ,

 

What do I need to do after the comparison? You can simply determine this with an if expression.

Greater = IF([X_Percentile_Value]>[SkillCount ],1,0)

 

Please feel free to correct me and provide more information if I have misunderstood you!

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Ritaf1983
Super User
Super User

Hi @daxBeanz 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

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.