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: 
aj_954
Contributor III
Contributor III

Nested aggregation not allowed using sum and if statement ( tried usingaggr)

Hi,

 

I am trying to sum the counts of a variable:

 

here is the code:

=sum(if(aggr([Requesting Agency] = 'JAY',count([Servicing Agency])),1))

 

but I am getting an error. I want to count the total number of times of the servicing agency being a value when the requesting agency = jay. 

1 Solution

Accepted Solutions
rwunderlich
MVP
MVP

1 Reply
rwunderlich
MVP
MVP

count({<[Requesting Agency]={'JAY'}>}[Servicing Agency])

-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com