Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi how find second highest salary in qlikview
Try like this
max(salary,2) // gives as per selection
or
Max({1}salary,2)
In your expression, try:
sum({<Salary={'=rank(sum(Salary))=2'}>}Salary)
See attached
Use the below script in Calculated dimension and use Sum(Salary) in Expression
If(Aggr(Rank(Sum(Salary),Employee)=1,Employee)
Or you can use dimension limits Tab, do the below thing
Look into FirstSortedValue() function....
Use into expression,
If(rank(sum(Salary))=2,sum(Salary),0)
You can try:
=FirstSortedValue(Sal, aggr(rank(sum(Sal)),Name), 2)