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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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!

Labels (1)
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!