Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
alexismerinocue
Partner - Contributor
Partner - Contributor

Percentile Range

Hi everybody,

How can I calculate the percentile range for an employee? Due to his category, month and year. I mean, I have the next calculation for percentile,

num(fractile(aggr(sum({<Ejercicio=p(Ejercicio),[Mes Contable]={'<=$(vMesActual)'}>}[Salario Actual]) / ($(mNumeroEmpleadosEvolucion)),[Categoría Profesional],Empleado_id,Ejercicio,[Mes Contable]),$(vValorPercentil)),'#.##0'))


Where $(vValorPercentil) is an input field to calculate the percentile.


But now the customer wants to calculate what is the range percentile for this employee acording with his category, for example if the salary of this employee is 33.500 and the salaries of the rest of employees with the same category are 32.000, 48.500, 33.500, 40.000 the range percentile is 33,3.


Any help?


Regards

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Add the category to the set modifier in both the sum and the fractile aggregation functions.


talk is cheap, supply exceeds demand