Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
bobbydave
Creator III
Creator III

Aggregation

aggr(sum({< [Control Description], Country ,[Fiscal Year Month]={'2016-11'} >} [Record Count]), Country)) < 300

Control     Country      Record Count

X                 UK             365

Y                 USA           271

Z                France        371

Am I right in assuming that my result would be France and UK?

=IF(

aggr(sum({< [Control Description], Country ,[Fiscal Year Month]={'2016-11'} >} [Record Count]), Country)) < 300

Concat(Country, ' is greater than 300' & chr(13)),

   Concat(Country, ' is less than 300' & chr(13)))

1 Solution

Accepted Solutions
sunny_talwar

Another options:

Concat(DISTINCT {<Country = {"=Sum({<[Control Description], Country, [Fiscal Year Month]={'2016-11'}>} [Record Count]) > 300"}>} Country, ', ')

View solution in original post

2 Replies
bobbydave
Creator III
Creator III
Author

Figured it out

=Concat(

if(

aggr(

  sum({< [Control Description], Country ,[Fiscal Year Month]={'2016-11'} >} [Record Count]),

   Country)>300,

     Country),', ')

sunny_talwar

Another options:

Concat(DISTINCT {<Country = {"=Sum({<[Control Description], Country, [Fiscal Year Month]={'2016-11'}>} [Record Count]) > 300"}>} Country, ', ')