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: 
psk180590
Creator III
Creator III

Pivot Table - Gives False Sum

Hello Everyone,

I'm facing a very strange problem with a Pivot Table.

Without Selection:

Without Selection.PNG

After Selecting the Date:

With Selection.PNG

As seen above, the Visit Count increases from 1 to 4 after selecting the particular date.(4 is the correct value present in my DB)

The Formula i have used to get the Visit Count :

sum(aggr(if(count(VisitID)>=1,1,0), %Key_Company))


I have Date and Code as Dimensions.

TIA!!

Sai.

1 Solution

Accepted Solutions
Anonymous
Not applicable

try this as expression:

sum(aggr(if(count(VisitID)>=1,1,0), %Key_Company,Code,Date))

View solution in original post

1 Reply
Anonymous
Not applicable

try this as expression:

sum(aggr(if(count(VisitID)>=1,1,0), %Key_Company,Code,Date))