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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
bheepatel
Resolver IV
Resolver IV

Calculate the sum of group percentiles based on dynamic percentile

Hi

 

I have the following table below which has the results of a simulation for multiple clients. In the example below, there are 3 clients (A, B and C) and the outcome of 4 simulations that were run for each client.

 

ClientOutput
A9197
A2816
A3359
A1923
B7128
B6974
B6341
B2994
C8437
C9052
C3412
C13

 

I also have a slider whereby the user can input a percentile value. I then need to calculate what is the Output value at that percentile for each client and sum it to show the Total.

 

For example, if the user selects the 25th percentile, then:

Total = 25th Percentile Value for Client A + 25th Percentile Value for Client B + 25th Percentile Value for Client C

Total = 1923 + 2994 + 13

Total = 4930

 

Another example, if the user selects the 80th percentile, then:

Total = 80th Percentile Value for Client A + 80th Percentile Value for Client B + 80th Percentile Value for Client C

Total = 9197 + 7128 + 9052

Total = 25377

 

The measure needs to calculate the total dynamically based on a percentile input. 

 

Would appreciate any help on this!

1 ACCEPTED SOLUTION
bheepatel
Resolver IV
Resolver IV

This did the trick:



vClientPercentileInput = 0.25

Total = SUMX( SUMMARIZE(Table, Table[Client], "Total", PERCENTILE.INC(Table[Output], vClientPercentileInput)), [Total])

 

View solution in original post

2 REPLIES 2
bheepatel
Resolver IV
Resolver IV

This did the trick:



vClientPercentileInput = 0.25

Total = SUMX( SUMMARIZE(Table, Table[Client], "Total", PERCENTILE.INC(Table[Output], vClientPercentileInput)), [Total])

 

amitchandak
Super User
Super User

@bheepatel , Not very clear. Refer if these links can help

https://blog.enterprisedna.co/implementing-80-20-logic-in-your-power-bi-analysis/
https://forum.enterprisedna.co/t/testing-the-pareto-principle-80-20-rule-in-power-bi-w-dax/459
https://finance-bi.com/power-bi-pareto-analysis/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors