Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How can I define this logic in a QlikSense pivot table?
Percentages special rounding
Basically, values are rounded to match 100%.
E.g.:
Satisfied: 26.98%,
Fairly satisfied: 24.78%,
Not very satisfied: 25.7%,
Not at all satisfied: 22.54%
26 + 24 + 25 + 22 = 97 -> 3 extra points. To be assigned to the 3 percentages with higher decimal part:
27 + 25 + 26 + 22 = 100
Thank you very much
Hi
I assume you have somethink like this :
then the trick here is to rank the value then if rank = 4 use floor() function if not then use round () function like this
if(aggr(rank(total result), type)='4',floor(sum(result),'0,01'),round(sum(result),'0,01'))
see below table :
hope it helps