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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot table - Dynamic values

Hi,

How to display the values dynamically in pivot table based on condition. if value is 0 then 'Yes' and if value is 1 then 'No'.

Please help

filter.png

Labels (1)
11 Replies
Not applicable
Author

I have used this expression

if(SecondaryDimensionality()=1,if(Value=1,'Yes' , if (Value=0,'No', sum(Alt(Value,0)),  num(sum (Alt(Value,0))/count (MYSTERY_SHOPPER ),'0%') )

I am getting the below. Pls advice

filter.png

stigchel
Partner - Master
Partner - Master

Check your brackets, if I see it correctly you're missing a closing bracket after

if (Value=0,'No', sum(Alt(Value,0))

so:

if(SecondaryDimensionality()=1,if(Value=1,'Yes' , if (Value=0,'No', sum(Alt(Value,0)))),num(sum(Alt(Value,0))/count (MYSTERY_SHOPPER ),'0%') )