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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
alando
Contributor II
Contributor II

How to ignore selection when using Aggr?

Hi,

The below formula works when when the user does not make any selection. It shows the average of countries attendance to meetings, for the region Africa and Arab States. How do I ensure that the value does no change if a user selects a country?

avg(aggr(Count({$<COUNTRY=, REGION = {'Africa and Arab States'}, STATUS = {'ATTENDED'}, START_DATE = {">=$(vCurrentYearStart)<=$(vToday)"}>} DISTINCT COUNTRY)
/
Count({$<COUNTRY= , =, REGION= {'Africa and Arab States'}, START_DATE = {">=$(vCurrentYearStart)<=$(vToday)"}>} DISTINCT COUNTRY),MEETING_ID))

 

Thank you in advance

A

1 Solution

Accepted Solutions
alando
Contributor II
Contributor II
Author

3 Replies
Or
MVP
MVP

Both the external avg() and the aggr() will take set analysis. You'll probably have to use that.

jyothish8807
Master II
Master II

Hi @alando 

With your current expression you have, "COUNTRY" selection done by a user should not impact  the overall values. 

Best Regards,
KC
alando
Contributor II
Contributor II
Author

Thank you. The following post provided me with the solution: https://community.qlik.com/t5/QlikView-App-Dev/Ignore-single-filter-in-AGGR-function/td-p/1170508htt...

Issue is resolved