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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Geraldtanwx199_
New Member

Measures to calculate percentile

Geraldtanwx199__0-1744038331607.pngGeraldtanwx199__1-1744038346707.png


can someone help me? 
I am using field and number parameters to do the attached graph.

But for my table, I want to calculate the number of students within the "x" percentile.

what are the easiest way to do way to do it? 

my dataset is from: Students Exam Scores: Extended Dataset
Thanks for the help!

1 ACCEPTED SOLUTION

Hi @Geraldtanwx199_ ,

 

You can try making two measure
1. create a measure to calculate the percentile value for the selected percentile

PercentileValue =
PERCENTILEX.INC(
    ALL(Expanded_data),
    Expanded_data[WritingScore],
    SELECTEDVALUE(Parameter[Parameter])
)
and 
2.create a measure to count the number of students whose scores are below the calculated percentile value
CountBelowPercentile =
CALCULATE(
    COUNTROWS(Expanded_data),
    FILTER(
        ALL(Expanded_data),
        Expanded_data[WritingScore] <= [PercentileValue]
    )
)
 
 

View solution in original post

3 REPLIES 3
Geraldtanwx199_
New Member

 Geraldtanwx199__0-1744038331607.pngGeraldtanwx199__1-1744038346707.png

Hello,

i am using the attached graph to show percentile.

is there a way to sum the total count of student under "x" percentile? i have been trying but my count of student is always at 31K.

Thanks in advance!

Hi @Geraldtanwx199_ ,

Thank you for reaching out to the Microsoft Fabric Community.

I wanted to check if you had the opportunity to review the information provided by @ltripathi . Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

 

Hi @Geraldtanwx199_ ,

 

You can try making two measure
1. create a measure to calculate the percentile value for the selected percentile

PercentileValue =
PERCENTILEX.INC(
    ALL(Expanded_data),
    Expanded_data[WritingScore],
    SELECTEDVALUE(Parameter[Parameter])
)
and 
2.create a measure to count the number of students whose scores are below the calculated percentile value
CountBelowPercentile =
CALCULATE(
    COUNTROWS(Expanded_data),
    FILTER(
        ALL(Expanded_data),
        Expanded_data[WritingScore] <= [PercentileValue]
    )
)
 
 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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