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

Change in colour depending on values

Hello All,

I have a requirement wherein I need to compare the Failed Count YTD(FCY) column value with 2017 Target value. If the FCY value is greater than the 2017 target, it should be highlighted as green, else red. The table I am using is a straight table. And this comparison should happen across all the products listed.

Any suggestions ?

   

Product2016Failed Count YTD2017 Target2017 Stretch Target
A1.10%1.8%1.00%0.80%
C3.00%2.4%2.25%1.50%
D5.60%2.4%4.20%2.80%
E0.00%2.4%0.00%0.00%
F0.00%2.3%0.00%0.00%
G0.00%2.2%0.00%0.00%
H0.30%2.1%0.23%0.15%
I0.00%2.3%0.00%0.00%
J0.30%1.9%0.23%0.15%
1 Solution

Accepted Solutions
florentina_doga
Partner - Creator III
Partner - Creator III

6 Replies
PrashantSangle

Hi,

Expand expression > Background color > write expression for color like

if(FCY_expression > 2017 target,green(),yellow())

regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
its_anandrjs

In the Backcolor properties try

=if( Sum( TOTAL FCY)  >  Sum( TOTAL 2017 Target) ,Green(), Red())

its_anandrjs

Expand the chart properties of Product dimension from here and then write

BackColor.PNG

=if( Sum( TOTAL FCY)  >  Sum( TOTAL 2017 Target) ,Green(), Red())

Or

=if( Sum( FCY )   >  Sum( 2017 Target) ,Green(), Red())



florentina_doga
Partner - Creator III
Partner - Creator III

or use visual cues on 2017 Stretch Target

>1 green()

oscar_ortiz
Partner - Specialist
Partner - Specialist

Joshua,

If you are not using dynamic labels you can use the column labels in your color expression.  Something like:

If( [Failed Count YTD] > [2017 Target], LightGreen(), LightRed() )

Good luck

Oscar

florentina_doga
Partner - Creator III
Partner - Creator III

see attach