Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
capriconuser
Creator
Creator

expression wrong

what is wrong with that expression .. i tried but nothing happens in chart

If($(vCompare2014-2013)>0,$(vGreen),$(vRed))

 

and message appear that error in expresison

1 Reply
rbartley
Specialist II
Specialist II

Hi,

It's difficult to say, since you haven't provided the definition of vCompare2014-2013 (or vGreen or vRed for that matter).  Are all of your variables being recognised as variables by Qlik, i.e. does the variable name appear in pink in the expression editor?

rbartley_0-1634115240509.png

What does your expression evaluate to (what does it say at the bottom of expression editor)?

rbartley_1-1634115317692.png

Depending on the definition of your variables (e.g. if they are values rather than expressions), it's possible that you should be referring to them without the $, e.g. vCompare2014-2013 instead of $(vCompare2014-2013)