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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional colouring of barchart

I use this expression

 

count(if(ANMAAR='2013',JOURNALNR))

and would like to set a condition than the bar turns red if the count is greater than 2013????????

something like this

count(if(ANMAAR='2013' and ANMAAR > '2012',JOURNALNR))

12 Replies
Anonymous
Not applicable
Author

GO TO EXPRESSION TAB -> EXPAND IT -> Click on expression tab write following expression -

if(count(if(ANMAAR='2013' and ANMAAR > '2012',JOURNALNR)),RED() )

hope this helps !!!

ANANT


VishalWaghole
Specialist II
Specialist II

Hi,

PFA here with screen shot where we can apply loggic to change color of bar.

Thanks and Regards,

Vishal Waghole

Not applicable
Author

solved by using Background Color and this

 

=

if(count(if(ANMAAR='2013',JOURNALNR)) >= count(if(ANMAAR='2012',JOURNALNR)), rgb(255,0,0), rgb

(164,216,105))