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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

conditional formatting the output

I have some text as a header in a bar chart with an expression.
I would like for the result af the exp to change color if its over or under zero.

the expression is like this

left(sum(Gsnit2)-count(Journalnummer),4).

I tried something like this

if(left(sum(Gsnit2)-count(Journalnummer),4)<0,green,red)) but it doesnt work??

3 Replies
Not applicable
Author

Hi,

When specifying colours, you need to use (). i.e. Green() or Red().

I hope this helps.

Thanks

Nick

brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi,

you must use tho function Green() resp. Red() or RGB(255,0,0) and so on

Not applicable
Author

I have tried like this

if(left(sum(Gsnit2)-count(Journalnummer),4)<0,green(),red())) but the output

come like this instead of the result RGB(0,128,0)) I want the number to be either red or green