Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Change the colour of a text object by condition

Hi all,

I'm looking to change the color of a text object based on a condition. I have read that red() or blue() should be able to change colors in tables etc. but I have not found a way to apply that in a text object. Additionally, how could I define a custom colour eg. (RGB(255,18,16)) for that background?

thnx!

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Open the Properties window of the Text object. Click on the button after the Color option to open the color chooser. Enable the option Calculated and enter an expression that returns a color. For example using a variable: =if(vMyColor='Red', rgb(255,18,16), rgb(200,200,200))


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Open the Properties window of the Text object. Click on the button after the Color option to open the color chooser. Enable the option Calculated and enter an expression that returns a color. For example using a variable: =if(vMyColor='Red', rgb(255,18,16), rgb(200,200,200))


talk is cheap, supply exceeds demand
ashfaq_haseeb
Champion III
Champion III

Check if this helps

Regards

ASHFAQ