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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
nft25
Microsoft Employee
Microsoft Employee

Calculate summary statistics for top nth percentile

Sample data (actual dataset a few GB's in size).

Call it Table1:

DistrictSchool# of students
1A1001
1B2163
1C1345
1D546
2E456
2F125
2G567
3H1020
3I1150

 

My final goal is to have a table with the mean and standard deviation of school sizes for the top nth percentile for each district.
So basically:
1) Take the top nth percentile (let's say top 80th as an example) school size for each district

2) Find the mean and variance or standard deviation school size for that top 80th percentile group for each district


Final result might look like (didn't calculate values based on sample data):

DistrictMean # of students (top 90th percentile)Var # of students (top 90th percentile)
1########
2########
3########

 

 

So far I've only managed to use a measure (see below) to find the value of the top 90th percentile and use a Table visualization to see this measure for each district, but it's far from my goal.

i.e. Measure=PERCENTILE.INC(Table1[# of students],0.9)

0 REPLIES 0

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.