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: 
MCHK
Contributor II
Contributor II

Suggestions on how to format calculation (nested aggregation error)

I am trying to use the below calculation (to obtain a percentage).  I am geting the nested aggregation error.  Is there another way to format this calculation so that I can avoid this?

=COUNT((PGS_BFOngoing)+COUNT(PGS_NewOpen)-count(PGS_ActivePrg)-count(PGS_ActiveRes))/((COUNT(PGS_BFOngoing) + COUNT(PGS_NewOpen))

Thank you

Labels (2)
1 Solution

Accepted Solutions
justISO
Specialist
Specialist

Hi, I believe you want to sum some counts (not count counts as you doing now). How about just like this:

(COUNT(PGS_BFOngoing) + COUNT(PGS_NewOpen) - COUNT(PGS_ActivePrg) - COUNT(PGS_ActiveRes)) / (COUNT(PGS_BFOngoing) + COUNT(PGS_NewOpen))

 

View solution in original post

2 Replies
justISO
Specialist
Specialist

Hi, I believe you want to sum some counts (not count counts as you doing now). How about just like this:

(COUNT(PGS_BFOngoing) + COUNT(PGS_NewOpen) - COUNT(PGS_ActivePrg) - COUNT(PGS_ActiveRes)) / (COUNT(PGS_BFOngoing) + COUNT(PGS_NewOpen))

 

MCHK
Contributor II
Contributor II
Author

Thank you - Perfect!  You are correct and this works.