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

set analysis using Aggr but ignoring user selection

The code below gives me the required points on a line chart, but is still impacted by users selecting 1 month from Mth-Yr for example, and then the chart will only show that point.  How do I change it to ignore user selections for all the condition fields below?  thanks

Avg(Aggr(Max({$<[Journey_part]={"Overall Response"},[Colour]={'Red','Purple'},WrpCouncil={'Masterton'},[Mth-Yr]={'>=$(=v13MthsAgo)'} >}Duration),Ref_Number))

1 Solution

Accepted Solutions
MayilVahanan

Hi @guster999 

Try like below

Avg({1}Aggr(Max({1<[Journey_part]={"Overall Response"},[Colour]={'Red','Purple'},WrpCouncil={'Masterton'},[Mth-Yr]={'>=$(=v13MthsAgo)'} >}Duration),Ref_Number))

If v13MthsAgo variable is dynamic, you need to set {1} for this variable also.

So, based on above , we can ignore the user selection

{1} <-- ignore all the selections

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi @guster999 

Try like below

Avg({1}Aggr(Max({1<[Journey_part]={"Overall Response"},[Colour]={'Red','Purple'},WrpCouncil={'Masterton'},[Mth-Yr]={'>=$(=v13MthsAgo)'} >}Duration),Ref_Number))

If v13MthsAgo variable is dynamic, you need to set {1} for this variable also.

So, based on above , we can ignore the user selection

{1} <-- ignore all the selections

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
guster999
Creator
Creator
Author

Many thanks, that works perfectly😊