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
Anonymous
Not applicable

Need to find what % of a column's values are < a target value

I'm having trouble writing a measure to find what % of a column's values are less than (<) a target value.

 

This is what I have thus far...but i'm off somewhere.

 

Measure = Calculate(PERCENTILE.INC(Tbl_RigData[ERS Total Response Time], FILTER(Tbl_RigData, <= 420)
1 REPLY 1
GustavoSF
New Member

Hello William,

 

Normally for these cases, I create a VAR for the numerator and another for the denominator, and then I just divide them.

For example, I would do:

MEASURE =

VAR denominator = COUNTROWS(Tbl_RigData)

VAR numerator = CALCULATE(COUNTROWS(Table), Table[ERS Total Response Time] <= 420)

RETURN

     DIVIDE(numerator, denominator)

 

PERCENTILE.INC works oppositely, you provide it with the percentile and it returns values that are in that specified percentile.

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.

Top Solution Authors