Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
jduluc12
Creator
Creator

Count() in Pivot table

Hi,

here is my pivot table

dimension:

Product.Name

Expression:

=count(distinct Product.SalesDate)

The table shows only those products which has at least 1 Product.SalesDate. It does not show the Products which have 0 SalesDate.


Can you think of any reason?

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

Change your expression to

=count(distinct Product.SalesDate) + Sum({1} 0)

HIC

View solution in original post

17 Replies
sunny_talwar

Have you tried to uncheck 'Suppress Zero Values' on the presentation tab?

Chanty4u
MVP
MVP

try this

  In dimensions - > tick show all values and in presentation tab ,untick suppress zero values..


and


this also

Did you unchecked it(Suppress when value is null.) for both the dimensions?

jduluc12
Creator
Creator
Author

yes but it still does not show up.

jduluc12
Creator
Creator
Author

i did both but i still do not see

sunny_talwar

Is the count 0 or is it missing?

Shubham_Deshmukh
Specialist
Specialist

I think there are NULL values instead of 0 values.

Pls check it in your Data source

jduluc12
Creator
Creator
Author

i am doing count which will always return a value.

i am trying to see if there is any product which does not have a salesdate.

jduluc12
Creator
Creator
Author

i do not see any product in the table whose

count(distinct Product.SalesDate) ia 0


Shubham_Deshmukh
Specialist
Specialist

If there is no such value then why you are checking it @Jean