Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
NickBentley
Contributor III
Contributor III

QlikView Bar Chart - Background colour not working with IF statement

Hi,

 

I have previously successfully used If statements for the colour of bars in bar chart based on the sales year.

However, when I set the background colour to RGB (49,130,189) it works as expected but the If statement   IF(SSDate_CY ='2023',RGB (49,130,189)) does not. 

 

Anyone got any ideas why it is not working as expected as the statement was copied from a chart in another QV app that worked 100%

 

Thanks in advance! 

 

If Statement.PNG

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni

This should work, Could be you don't have in bar with 2023 data? 

Or, try with Pick(Match(SSDate_CY, 2023), RGB(....))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni

This should work, Could be you don't have in bar with 2023 data? 

Or, try with Pick(Match(SSDate_CY, 2023), RGB(....))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
NickBentley
Contributor III
Contributor III
Author

Thank you 

 

PREVIEW