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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Extracting file name

Hi.
I need some assistance.
I have a text object where I want to display a number and if the number is less than 100, I would like to show in red, otherwise in blue.
=if([Field_1]<100, Red([Field_1]), blue([Field_1]))
I know this functions red(), blue() is to  return a RGB color representation, but it helps me to explain here my problem.
Thanks a lot.
Jorge
Labels (1)
1 Reply
swuehl
Champion III
Champion III

I think you can go the text box properties, Font tab and select the Color button.

In the color dialog box, choose a calculated base color and input an expression like

=if([Field_1] < 100, red(), blue() )

Field_1 should give an unambiguous result in the text box to work as expected.

You can set the background color in a similar way on general tab, Color selection button.