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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Compare two values for displaying colors in QLIKSENSE

Hi All,

I want to display Bar chart for the below data.

Names
DateValue1Value2
a

1-1-2016

100100
b

1-1-2016

120120
c1-1-2016130120
a1-2-2016100100
b1-2-2016123123
c1-2-2016300300
a1-3-2016120120
b1-3-2016130130
c1-3-2016160150

Now i want to display BAR Chart in Qliksense for the above data. I required value1 and value2 bars as measures and date as dimesnion.

Here if value1 and value2 are same the bar to be display in GREEN color. If value1 and Value2 are not same after then bar should be display in RED Color.

Please help me on this.

Thanks

Avinash  Avinashelite   jagan   

1 Solution

Accepted Solutions
brunobertels
Master
Master

Hi

if this is what you want :

add this

if(sum(Value1)=sum(Value2),green(),lightred())

in the color and legend panel by expression

View solution in original post

3 Replies
brunobertels
Master
Master

Hi

if this is what you want :

add this

if(sum(Value1)=sum(Value2),green(),lightred())

in the color and legend panel by expression

avinashelite

Please follow the steps mentioned by brunobertels‌ that should work . If your able to achieve the same please let us know will help you out with the same

jagan
Partner - Champion III
Partner - Champion III

HI,

Add this in Color Expression

If(Sum(Value1) = Sum(Value2), Green(), Red())


Hope this helps you.


Regards,

Jagan.