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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
tomovangel
Partner - Specialist
Partner - Specialist

Text Object Colors ?

I have a problem with text object colors. 

I want to have a Text Object, in which it says 'Month'. And depending on the variable ACC_10, the color to be Gray or Yellow.

I tried with the following


=if(ACC_10 = 0, Text(Month)=RGB(192,192,192),Text(Month)=RGB(255,255,0))

But it shows me 0 values.


I also tried


=if(ACC_10 = 0, 'Month'=RGB(255,255,0),'Month'=RGB(192,192,192))
But it doesn't work as well.
Help please


Thanks in advance



1 Solution

Accepted Solutions
Kushal_Chawda

Go to text object properties -> Fonts-> click on color -> click on Calculated, put below expression

=if(ACC_10 = 0, RGB(255,255,0),RGB(192,192,192))

View solution in original post

3 Replies
Kushal_Chawda

Go to text object properties -> Fonts-> click on color -> click on Calculated, put below expression

=if(ACC_10 = 0, RGB(255,255,0),RGB(192,192,192))

tomovangel
Partner - Specialist
Partner - Specialist
Author

Thank you my friend

Kushal_Chawda

No problem