Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
tmumaw
Specialist II
Specialist II

Adding Colors in a Text box

I have a text box with this calculation in it.  I want the number to appear in Red if negative and Green if positive.  The statement says it's formatted okay, but colors do not change.  What am I missing.

Thanks

=num(if(count({<FISYR = {$(=$(vFisYr) - 1)}, YR_SW = {1}, Acq_Sales = {1}>} Distinct([Sold To])) - count({<FISYR = {$(=$(vFisYr) - 5)}, YR_SW = {1}, Acq_Sales = {1}>} Distinct([Sold To]))) /
count({<FISYR = {$(=$(vFisYr) - 5)}, YR_SW = {1}, Acq_Sales = {1}>} Distinct([Sold To]
)) < 0,RGB(255,0,0),RGB(0,153,0),'###.#%')

Labels (1)
1 Solution

Accepted Solutions
jwjackso
Specialist III
Specialist III

Is this section if(count({<FISYR = {$(=$(vFisYr) - 1)}, YR_SW = {1}, Acq_Sales = {1}>} Distinct([Sold To])) - count({<FISYR = {$(=$(vFisYr) - 5)}, YR_SW = {1}, Acq_Sales = {1}>} Distinct([Sold To]))) /
count({<FISYR = {$(=$(vFisYr) - 5)}, YR_SW = {1}, Acq_Sales = {1}>} Distinct([Sold To]
)) < 0,RGB(255,0,0),RGB(0,153,0))

in the textbox->font->color->calculated expression?

View solution in original post

1 Reply
jwjackso
Specialist III
Specialist III

Is this section if(count({<FISYR = {$(=$(vFisYr) - 1)}, YR_SW = {1}, Acq_Sales = {1}>} Distinct([Sold To])) - count({<FISYR = {$(=$(vFisYr) - 5)}, YR_SW = {1}, Acq_Sales = {1}>} Distinct([Sold To]))) /
count({<FISYR = {$(=$(vFisYr) - 5)}, YR_SW = {1}, Acq_Sales = {1}>} Distinct([Sold To]
)) < 0,RGB(255,0,0),RGB(0,153,0))

in the textbox->font->color->calculated expression?