Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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.