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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

No/Incorrect totals in Pivot table

I have a Pivot table (see screenshot), but the totals are incorrect.

The numbers in the tabel calculated with the extression:

if([Start op]<[PERe.autoCalendar.Date],if([Geannuleerd per]>'0',if([Einde contract op]<[PERe.autoCalendar.Date],0,1),1),'0')

-[PERe] is from a tabel with the end-dates of every month

- [Geannuleerd per], [Einde contract op] and [Start op] are all date-fields

This results in a 1 (one) of 0 (nul) in the tabel.

I can only turn [Show totals] on or off. And they are turn on for [Memberschip]  and [Lidmaatschap ID].

Even with only one dimention (Membership or Lidmaatschap ID) I don't get any totals.

Labels (1)
1 Solution

Accepted Solutions
Marco
Partner - Contributor III
Partner - Contributor III

Hi,
add "Sum" in expression:
Sum(if([Start op]<[PERe.autoCalendar.Date],if([Geannuleerd per]>0,if([Einde contract op]<[PERe.autoCalendar.Date],0,1),1),0))

View solution in original post

2 Replies
Marco
Partner - Contributor III
Partner - Contributor III

Hi,
add "Sum" in expression:
Sum(if([Start op]<[PERe.autoCalendar.Date],if([Geannuleerd per]>0,if([Einde contract op]<[PERe.autoCalendar.Date],0,1),1),0))
Anonymous
Not applicable
Author

Tnx, that did the trick.

Expressions are still a bit of a challenge for me. Every . and , counts. I'm realy familiar with Excel, but learn every day on Expressions. Realy need to get started with that training for Expressions.

Tnx again.