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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
mrmoster
Contributor
Contributor

Ignoring selections in AGGR

I am trying to work out query to select the latest month one of our offices had a new starter. After a bit of effort I managed to get the below to work, but I cant work how to get it to ignore when the month is selected on a filter or chart. 

Read similar posts but just cant seem to figure it out. Might be I have not worked out the best way to the find out the month. Any help would be much appreciated.  

 

max({$<Month>}Aggr(if(sum({$<[Data Collection Requirement]={"New Starters"},[Month]>} [All Count])>0,Month),Month))

1 Solution

Accepted Solutions
stevejoyce
Specialist II
Specialist II

This will fix your issue.  remember you'll need to ignore month in all references.

max({$<Month>}Aggr(if(sum({$<[Data Collection Requirement]={"New Starters"},[Month]>} [All Count])>0, only({<Month>} Month)),Month))

View solution in original post

2 Replies
stevejoyce
Specialist II
Specialist II

This will fix your issue.  remember you'll need to ignore month in all references.

max({$<Month>}Aggr(if(sum({$<[Data Collection Requirement]={"New Starters"},[Month]>} [All Count])>0, only({<Month>} Month)),Month))

mrmoster
Contributor
Contributor
Author

Thanks for the fix, knew I was missing out filter somewhere!