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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
surajdhall
Contributor III
Contributor III

pivot table with null

Hi All,

I have horizontal pivot table and i have issues to find/calculate nulls values in the expression using if() condition.

I am using below expressions to calculate sales, if no sales available i want to throw blank. But in few cases it returns blank, but in other cells it returns '-'

if(not isnull(sum(sales) or len(sum(sales)) >0,

sum(sales),' ')


Please help

7 Replies
sunny_talwar

Would you be able to share a sample to show the issue?

el_aprendiz111
Specialist
Specialist

Hi,

1 Option...

zerosss.png

surajdhall
Contributor III
Contributor III
Author

I will prepare the same in few minutes. Thanks

surajdhall
Contributor III
Contributor III
Author

Hi Sunny

you can see down arrows, where i want blanks, as there is no data in the next month, so i want bank instead of arrow.

arrow error.PNG

!

arrow error2.PNG

Please help!

sunny_talwar

So wherever you have NA, you would not want to see any arrow?

surajdhall
Contributor III
Contributor III
Author

Yes. But not in below case. In below case. For April there  is up arrow as there is data in May, But no arrows should be shown in Mar, below is correct. But in previous screenshots that i posted there are down arrows, which are incorrect.

trend error4.PNG

sunny_talwar

I understand the up arrow in May-2017.... but why is there an up-arrow in Apr-2017? Mar-2017 and Apr-2017 have both N/A... why up arrow for Apr-2017 then?