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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Change text object background color without duplication expression

Hi. I have a text object with a value that has a rather long formula. I hope to change the background color of the text box based on its value (e.g. red if below 0 and green otherwise). Right now I am just duplicating the formula into the color condition and it's working fine. But I am wonder if there's a more elegant way to do it rather than duplicating it? I thought of setting the value to a variable but couldn't seem to find an appropriate trigger.

Thanks in advance!

1 Solution

Accepted Solutions
agomes1971
Specialist II
Specialist II

Hi,

please see attached.

HTH

André Gomes

View solution in original post

2 Replies
agomes1971
Specialist II
Specialist II

Hi,

please see attached.

HTH

André Gomes

Not applicable
Author

Thanks. Works beautifully!