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: 
elie_issa
Creator II
Creator II

Bar Chart Colors

Dear All,

I need to get the below colors having one dimension month_year and one expression showing the completeness rate.

The green color should be given for the last month year we are showing in our chart (Apr 2017 in the below pic) and then the other months should show the grey color lighter for the previous month and darker for the last month (Nov 2016 in the below pic)

pic.png

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Nice solution Felip. I modified your color expression a bit to eliminate the need for an Index field and to handle a variable number of bars.

=if(Month=Max(Total Month)

,RGB(181,230,29)

,ARGB(255*(1- (Rowno() / Bottom(RowNo()))),0,0,0)

)

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

View solution in original post

3 Replies
felipedl
Partner - Specialist III
Partner - Specialist III

Hi Elie,

You could add another dimension for each month you have, so that it's possible to do the gradient you want.

Attached is an example of what I did.

Regards,

Felipe

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Nice solution Felip. I modified your color expression a bit to eliminate the need for an Index field and to handle a variable number of bars.

=if(Month=Max(Total Month)

,RGB(181,230,29)

,ARGB(255*(1- (Rowno() / Bottom(RowNo()))),0,0,0)

)

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

elie_issa
Creator II
Creator II
Author

thanks a lot it works