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

Calculated Bar Colours on Chart

I have a chart with a target. If the sum of the field is greater than 98 I want the bar to be green if its below this I want it to be red. I have used this calculation but it doeswn't work, is this possible?

if

(Sum ([Yield %]) > 98,Green(),Red())





1 Solution

Accepted Solutions
Not applicable
Author

Have you insert the code into "Background colour", the sub-point underneath dimension- and formula-name?

See attached example.

View solution in original post

5 Replies
Not applicable
Author

Have you insert the code into "Background colour", the sub-point underneath dimension- and formula-name?

See attached example.

Not applicable
Author

Hi,

see the attached example.

Good luck!

Rainer

Not applicable
Author

Thanks guys. As I posted the question i tried the background colour under expressions and it worked. I was doing it on the colour tab originally.

Thanks for your replies

Not applicable
Author

Hi,

Can you please send me the attachment in an email as i am unable open the file downloaded from here.

Thanks

Arun

Not applicable
Author

Thanks Rainer, that saved me a lot of time., great example