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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using NEST IF statements

I was having some problems getting nested IF statements to work and I thought this maybe helpful to others.
I wanted to change the default background colour in a column in a table based on the value in the column and this was the structure of the IF statement that worked for me.
=IF(
'CONDITION 1'
,  'ACTION 1'
,IF('CONDITION 2'
,'ACTION 2'
,IF('CONDITION 3'
,'ACTION 3'
,'DEFAULT ACTION'
)
)
)
1 Reply
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Sometimes this may also helpfull for others.

     =Pick(WildMatch(FieldName or Expression,'Value1','Value2','Value*','*'),'Action1','Action2','Action3','Action4')

Celambarasan