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: 
Anonymous
Not applicable

Set Anlaysis issue

Hi Guys,

I Have an issue with a rangeavg calculation. I use a moving average with the rangeavg function:

sum(aggr( rangeavg(above( $(vProjectPipelineM2)/$(vProjectPipeline#),0,3) ),Ring,YearMonth))

This works fine. But now I want to exclude YearMonth (as with YearMonth=)  from the selections as this will recalculate from selecting fields. That's unwanted. Were do I put thise exclusion in the set analysis?

Pls advice

Robert

Labels (1)
3 Replies
sunny_talwar
MVP
MVP

You probably would need to do that within your variables

vProjectPipelineM2

and

vProjectPipeline#

and here

Sum({<YearMonth>} Aggr(.....

miguelbraga
Partner - Specialist III
Partner - Specialist III

Try simply this:

sum({$<YearMonth= >} aggr( rangeavg(above( $(vProjectPipelineM2)/$(vProjectPipeline#),0,3) ),Ring,YearMonth))

Best regards,

D.A. MB

Anonymous
Not applicable
Author

Try to put {$<YearMonth= >} in front of the aggr function.  That should work.