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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
HMUTUAL01
Contributor III
Contributor III

Error in Distinct Count

I am trying to set up a KPI to count the people that match a certain criteria but an getting an error in expression.  Is there a way to get this into a KPI?

Error message: "Nested Aggregation not allowed"

=Count(distinct IF(MAX(NFILE_DATE)='$(=max(NFILE_DATE))'), Emp_num)

Labels (3)
1 Solution

Accepted Solutions
Lisa_P
Employee
Employee

Try this:

=Count(distinct {<NFILE_DATE={"$(=max(NFILE_DATE))"}>} Emp_num)

 

View solution in original post

2 Replies
Lisa_P
Employee
Employee

Try this:

=Count(distinct {<NFILE_DATE={"$(=max(NFILE_DATE))"}>} Emp_num)

 

HMUTUAL01
Contributor III
Contributor III
Author

That worked, thanks!