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: 
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