Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

TExt BOx Value Color change

hi All,

i have target in one text box and in other actual, i want when my target > Actual it should show red color else green color

5 Replies
Anonymous
Not applicable

On the Font tab of the Text Box :

  • <Click> Color
  • <Click>  Calculated
  • Enter expression
    • if ( target > Actual , Red(), Green() )
sunny_talwar

It seems you have two text boxes? Do you want both turn Red or Green at the same time or Do you want only Target to turn Red when Target > Actual and only Actual to turn green when Actual > Target?

sunny_talwar

If condition might change, but the procedure will remain the same as listed by Bill Markham‌. The same procedure looking at a image is as follows:

Color.PNG

I hope this will help.

Best,

Sunny

abhaysingh
Specialist II
Specialist II
Author

yes i have two target i want actuals to turn red or green when target> actual

sunny_talwar

Have a look at the attached document. It is green when nothing is selected because Sum(Actual) > Sum(Target)

Sum.PNG

But as soon as you select A, the text box turns Red:

A.PNG

See the steps I used:

Procedure.PNG

I hope this will clarify you the process.

Best,

Sunny