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: 
jim_chan
Specialist
Specialist

How to add custom color on each expression?

Hi guys,

i have created a pivot table. problem is :

i want to add custom background color on the expression, but i don;t know how.

- i have tried background color on in the expression tab - ends up it colored my data instead of the expression title(Cost A - Cost D).

- I have tried custom format cell as well, but i only want Cost A-D in blue and Cost E-G is Green. - ends up all in blue.

So. Pls help! how to custom it?

sample.jpg

Rgds

Jim

14 Replies
jim_chan
Specialist
Specialist
Author

Hello Sunny,

But My "Cost" is expression. So, can i still create a custom background color for each of the expression?

error.jpg

sunny_talwar

That makes your life a lot more easier. When you will click on the + sign next to your expression label, you will see Background color show up. For the expression A,B,C, &D add =Blue() and for E,F,G add =Green()

sdmech81
Specialist
Specialist

Hi,

store the rgb colors in variables like,light blue n green as per your wish.then use the these variables in your expression.

Next as mentioned by others in above post, if you want background coloring of dimension then you should write the condition in dimension tab n then background coloring.If for expression then in expression background coloring.

your expression,cab be like sunny or varsha, but would suggest try using pick and try to avoid if in expressions aswell.

attach file if still facing problem.

--sachin

jim_chan
Specialist
Specialist
Author

nope. by applying the background, it did change the bg color to blue. but i wanted the Cost A(title/header) to have Blue background instead.

How can i do that Sunny?

error.jpg

Rgds,

Jim

jim_chan
Specialist
Specialist
Author

ok ..... is this one! Thanks!!!!!