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 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
Partner - Champion III
Partner - Champion III

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
Partner - Champion III
Partner - Champion III

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