Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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
Partner Ambassador/MVP
Partner Ambassador/MVP

1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

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

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