Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2022, LIVE in Denver CO., May 16-19, 2022. REGISTER NOW TO RECEIVE EARLY BIRD PRICING
cancel
Showing results for 
Search instead for 
Did you mean: 
msmichael
Creator
Creator

Bar chart with part of bars filled with color

Hi expert, 

Could anyone please let me know how I can create a bar chart like below in QV?

bar.png

I created the above chart in excel, the last two bars are not filled with colors. I did this by editing the data point. How can I do the same in QV?

 

Thanks,

Michael

Labels (1)
  • bar

1 Solution

Accepted Solutions
tresesco
MVP
MVP

3 Replies
NW1965
Creator
Creator

u should be able to do this by expanding the expression in the expression tab of your chart properties, then going to the background colour and creating an expression in there to control the colour.

For example:

IF(DimensionValue = {'1Q18','2Q18','3Q18','4Q18','1Q19','2019TD'} , RGB (0,0,255) , RGB(0,0,0) )

 

Note: I might not have the syntax exactly right for the test on the dimension values, you may need to use the match function here, but the principles are there to change the colour using the background expression.

tresesco
MVP
MVP

msmichael
Creator
Creator
Author

Hi,

thanks, this is exactly what I want.