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

how to color empty cells?

Good Day,

how do I color empty cells in a table dynamically?

Example: yellow coloring null fields.

I thank you!

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

In a pivot table or straigth table chart you can do it like this:

Enable the grid and right click a cell and use Custom Format Cell to set the default background to yellow.

Next, open the charts properties window, go to the expressions tab and click on the + sign in front of the expression. Select background color and enter white() as expression.

That will give cells with a value a white background color while the other cells will have a yellow background. See attached example.


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Clever_Anjos
Employee
Employee

Expand your expression e look for Background Color

=if(IsNull(yourfield or expression),Yellow())

Not applicable
Author

Hi,

In the expressions tab, double click on your expression

You will see several items, one of them is Background color : enter a definition (an expression) to color the cell

sth like ; if my expression is null then yellow

Fabrice

MayilVahanan

Hi

Try like this

Expression -> Background color

=If(IsNull(Expression) , Yellow(), Green())

// Here expression represents something like sum(sales)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

In a pivot table or straigth table chart you can do it like this:

Enable the grid and right click a cell and use Custom Format Cell to set the default background to yellow.

Next, open the charts properties window, go to the expressions tab and click on the + sign in front of the expression. Select background color and enter white() as expression.

That will give cells with a value a white background color while the other cells will have a yellow background. See attached example.


talk is cheap, supply exceeds demand