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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Background Color Expression

I am attempting to highlight a field in a Pivot Table object both Charts and Custom Objects > Qlik Visualization Bundle when the amount exceeds 100%. Seems basic enough under the metric there is the Background Color Expression.

I entered the condition as so: IF(sum(Margin)/sum(MarginGoal)>1,'Mint','White')

However, nothing happens.Background Color Expression.png

Labels (3)
1 Solution

Accepted Solutions
MatheusC
Specialist II
Specialist II

Hi, @Anonymous 

The expression returns the correct percentage?

Are you using this 'Mint' return for color or is it just an example because this is not a valid color in the expression?

Color example, also in RGB, Hex color codes....



IF(sum(Margin)/sum(MarginGoal)>1,'#3EB489',White())


-Regards,  Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!

View solution in original post

3 Replies
MatheusC
Specialist II
Specialist II

Hi, @Anonymous 

The expression returns the correct percentage?

Are you using this 'Mint' return for color or is it just an example because this is not a valid color in the expression?

Color example, also in RGB, Hex color codes....



IF(sum(Margin)/sum(MarginGoal)>1,'#3EB489',White())


-Regards,  Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
Kushal_Chawda

@Anonymous  How many dimension do you have in pivot table?

Anonymous
Not applicable
Author

Thank you, the issue was with setting the colors. I am transitioning QlikView 12 to Qlik Sense so thank you. Also the Qlik Help section is a little confusing. Looks like the issue may come down to what key color words they choose to set. https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Colors/color-by-expressi...