Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
snancyiv
Contributor III
Contributor III

Calculation for percentile of a value

Hello,

 I’m trying to calculate what percentile a value is. If I have a KPI chart that shows the percent of sales as 38%, the percentile would be the 25th percentile. Is this possible?

Labels (2)
2 Replies
justISO
Specialist
Specialist

Hi, you can try to use fractile() function, something like this maybe:

if( sales <= Fractile(total sales, 0.25), 25,
if( sales <= Fractile(total sales, 0.5), 50,
if( sales <= Fractile(total sales, 0.75), 75, 100)))

snancyiv
Contributor III
Contributor III
Author

Hi,

thanks but that’s not what I’m looking for. I suppose this topic is closest to what I mean but I need it in a KPI chart view: https://community.qlik.com/t5/QlikView-App-Dev/Calculate-percentile-of-specific-value/td-p/1008421