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

expression error

Hi

Can anyone advise what may be wrong with this expression?

=if([[Risk Category]}) = Copers,'#FFF042'

=if(
[[Risk Category]}) = Struggler,'#FF0000',

Risk Category is a field within the data.

Cheers

Chris

Labels (1)
2 Replies
Not applicable
Author

Hi,

Try these:

=if([Risk Category] = Copers,'#FFF042' )

=if(
[Risk Category] = Struggler,'#FF0000')

If you need them nested into one, try this:

=if([Risk Category] = Copers,'#FFF042' ), if([Risk Category] = Struggler,'#FF0000'))


Matt

kaushiknsolanki
MVP
MVP

Hi Matt,

     Try this.

     if([Risk Category] = 'Copers','#FFF042', if([Risk Category] = 'Struggler','#FF0000'))

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!