Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
edwardgoss
Contributor II
Contributor II

Qlik Fractile vs Excel Percentile

 

I need to calculate the 50th and 90th percentile in Qlik the way Excel does it. The Qlik Fractile function ONLY returns a value in the list of numbers, while Excel returns an inferred number. See example below. Does anyone know how I can return the Excel based value?

In this example, the P50 returns the same value for both, but the P90 does not. Thanks in advance!

 

edwardgoss_1-1700760076881.png

 

Labels (1)
3 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Using your data in Qlik, I get 150.2 for Fractile(Days, .9)

rwunderlich_0-1700763060380.png

 

edwardgoss
Contributor II
Contributor II
Author

I have an if statement in the fractile all embedded in an aggr function.  I must have something wrong. Thank you. 

edwardgoss
Contributor II
Contributor II
Author

Hi Rob,

The issue was with the data not having unique values. I reran the script using 'Distinct' and the percentile function is working as expected.