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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out 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

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni
MVP
MVP

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
MVP
MVP

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