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: 
Newbie_QLIK
Contributor III
Contributor III

Qliksense pivot table background colour when null value

Hi Qlik Community,

I hope this message finds you well.

I’ve learned that Qlik Sense doesn’t apply background color to cells with null values because it doesn’t insert anything into those cells. In a previous discussion (link), lblumenfeld suggested placing a space in the cell for null values to ensure the background color is applied (e.g., If(Not IsNull([Your Field]), [Your Field], ' ')).

I tried this approach, but it didn’t work. Can anyone help identify the problem in the following expression?

 

=if(not isNull(
pick(Dim,
count(Saleproduct),
count(Saleproduct)/(200/5/12),
count(Saleproduct)/(200/12),
rangesum(count(Saleproduct))
)
),
pick(Dim,
count(Saleproduct),
count(Saleproduct)/(200/5/12),
count(Saleproduct)/(200/12),
rangesum(count(Saleproduct))
),
""
)

 

Thank you for reading!

If you have any alternative methods to achieve this, please feel free to share.

Best,

Newbie_Qlik

Labels (3)
12 Replies
Newbie_QLIK
Contributor III
Contributor III
Author

Great that Qlik sense 2024 has done something for null values!

I am looking forwards to it. I need to wait my company to update that new version.

Thanks again @MatheusC 

 

Best,

datagrrl
Creator III
Creator III

I am confused that you are still getting Null Values when you use the updated expression according to the screen shot you shared.

Maybe it is a version thing, but you should be getting blanks, not nulls.

After that I would take a look at at your color expression. I struggled to get your expression to work correctly with my blank values, but when I stripped it down to if(Dimensionality()=1,red(),blue()) it worked fine for the blanks.

Newbie_QLIK
Contributor III
Contributor III
Author

Thank you @datagrrl  for checking!! I will wait for the new version to be installed 🙂