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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Kwame
Contributor III
Contributor III

Count(If()) based on max date gives wrong totals

Greetings, community,

I'm curious about the reason behind the inaccurate sums shown by this particular formula.

=Count(DISTINCT If(Aggr(NODISTINCT Max(Date), Date) = Date, ID))

Upon exporting to Excel, the tally doesn't match the expected total of 58,306.

I would greatly appreciate your assistance. Thank you very much.

Kwame_0-1689249335584.png

1 Reply
Or
MVP
MVP

Why would the expected total be 58306? You are counting distinct values, which presumably can repeat over multiple months (but are not counted twice for the total)?