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: 
felcar2013
Partner - Creator III
Partner - Creator III

formula not working in text box

hi

i don't really understand why this formula does not work in a text box:

=if($(%Change)>0,LightGreen(),LightRed())

%Change is a variable in percentage, that can be positve or negative

thanks for any help

felipe

1 Solution

Accepted Solutions
Not applicable

7 Replies
Not applicable

Try:

=if(%Change>0,LightGreen(),LightRed())

felcar2013
Partner - Creator III
Partner - Creator III
Author

thanks

i get as result

RGB(255,0,0)

Not applicable

That means you are entering it in the wrong place. Under General > Background > Color > Base Color > Calculated enter your expression. See attached.

felcar2013
Partner - Creator III
Partner - Creator III
Author

thanks Rebecca, i forgot to say, i want that the variable value font changes the color accordingly, not the background. there is also an option under "font", but i get my result " RGB(255,0,0)" in the color i indicated, but what i need is to get the variable value in that color

is this possible?

Not applicable

See attached.

felcar2013
Partner - Creator III
Partner - Creator III
Author

excellent, thanks, it work however with the $(var)

Not applicable

Ok good deal. Glad it worked for ya.