Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Karthick30
Creator
Creator

Null Value coloring Issue in Pivot

Hi,

 I have a request to show top 5 rows in specific color in pivot table. I have used the formula if(rowno(total)<=5, lightgreen()) in background colour, but I am getting like below ( its our issue)

Karthick30_0-1652171027742.png

 

it is ignoring null values. Is there any possibilities to show top 5 irrespective of null values. 

like this we need

Karthick30_1-1652171126029.png

 

 

Labels (1)
6 Replies
Andrea_Spinetti
Former Employee
Former Employee

Hello @Karthick30, you could change the dimension in the table that has got the null values to the following: =if(isnull(Dimension), '-', Dimension)

This way your background color expression should work 😊

If the issue is solved please mark the answer with Accept as Solution.
Karthick30
Creator
Creator
Author

Thanks @Andrea_Spinetti . still same issue. I have 2 dimension and one measure. 2 dimension ( 1 as column & 1 as row). changed both dimension formula as per your formula. but still same error

Andrea_Spinetti
Former Employee
Former Employee

@Karthick30 would you be able to attach a sample app so I can better assist? Thanks!

If the issue is solved please mark the answer with Accept as Solution.
vinieme12
Champion III
Champion III

Just replace null values with 0's

 

=if(sum(Measure),sum(Measure),0)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Karthick30
Creator
Creator
Author

Hi @Andrea_Spinetti 

 sample app attached with existing issue.

 

Andrea_Spinetti
Former Employee
Former Employee

Hi @Karthick30, those aren't null values but missing values. The only way to solve the issue is to add extra data for all the missing combinations.

If the issue is solved please mark the answer with Accept as Solution.