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
Bemused
Frequent Visitor

How to calculate percentiles using Averaged Empirical rule, in the way SPSS CTABLES do, in Power BI

Hi everyone 🙂

 

So I've been struggling with this a lot, and searched in Google and on the Community forums, can't find the solution anywhere.

 

Please bear with me, my quantitative skills aren't hugely amazing!

 

I have a column of values as below (dummy data):

 

[ID][Values]
10
26
30
44
52
65
70
85
91

 

I need to calculate the 95th percentile for [Values], inclusive of all numbers, but I need to do so using the same way that SPSS does with CTABLES--using the averaged empirical (AEMPIRICAL) method. This issue is detailed here:  https://www.ibm.com/support/pages/how-does-spss-statistics-calculate-percentiles-frequencies-or-ctab...

 

And I think the specific method is this one: https://www.xycoon.com/method_4.htm 

 

Using PERCENTILE.INC does not achieve this for some of the values; e.g. where Power BI says the percentile is 0.4, SPSS says 1.

 

So I guess my broad question is: how do you calculate the 95th percentile in Power BI in the same way as SPSS using CTABLES?

 

Any help would be brilliant!

3 REPLIES 3
Bemused
Frequent Visitor

I don't suppose anyone else has any ideas...?

Yeah, it's a bit hard to explain without having delved deep into the world of percentiles!  I didn't even realise there was more than one way to calculate percentiles--there's eight!

 

From what I understand of the links you provided, yeah it's heading in the right direction.  I've tried splitting the AEMPIRICAL formula up into distinct steps and putting it into DAX, but I'm still having some major problems with RANKX and CALCULATE--and this is probably more my ignorance than any problem with Power BI.

 

The search continues, I just hope someone more adept at it out there has encountered this issue.  Meanwhile I'll keep plugging away!

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.