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: 
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, ', ')