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: 
Anonymous
Not applicable

Color Formatting in Charts

Hi,

I want to conditionally format a bar/pie chart, I am using the following formula but it's not working


if([Recommendation State] = 'Closed', Green()) and if if([Recommendation State] = 'Open', Red()), if([Recommendation State] = 'Half Close', Yellow())


Can you please help? What am I getting wrong and where should I put this?


Thanks,

Sunny

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Try some thing like below

if([Recommendation State] = 'Closed', Green(), if([Recommendation State] = 'Open', Red(), if([Recommendation State] = 'Half Close', Yellow())


Or

Pick(Match(Only({<[Recommendation State]>}[Recommendation State]), 'Closed', 'Open', 'Half Close'), Green(), Red(), Yellow())


Or

Pick(Match([Recommendation State], 'Closed', 'Open', 'Half Close'), Green(), Red(), Yellow())

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

Try some thing like below

if([Recommendation State] = 'Closed', Green(), if([Recommendation State] = 'Open', Red(), if([Recommendation State] = 'Half Close', Yellow())


Or

Pick(Match(Only({<[Recommendation State]>}[Recommendation State]), 'Closed', 'Open', 'Half Close'), Green(), Red(), Yellow())


Or

Pick(Match([Recommendation State], 'Closed', 'Open', 'Half Close'), Green(), Red(), Yellow())

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
Anonymous
Not applicable
Author

Thanks a lot Anil