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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
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

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
Partner Ambassador/MVP
Partner Ambassador/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!