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

aggr function - Taking more time

Hi All,

I am using below code in my combo chart to calculate YTD Average.

Dimensions: DEPT,PRODUCTTYPE

Selection: MONTH,YEAR

aggr(RangeAvg(Above( sum({<Year={$(=Max(Year))}, MONTH>}SALES),0,RowNo())),DEPT,PRODUCTTYPE,MONTH)

/

aggr(RangeAvg(Above( sum({<Year={$(=Max(Year))}, MONTH>}VOLUME),0,RowNo())),DEPT,PRODUCTTYPE,MONTH)

Issue: Application is hanging showing green color loading button when I select MONTH.

Please help me in fine tune the expression.

Thanks in advance.

Labels (1)
12 Replies
sunny_talwar
MVP
MVP

I would suggest using The As-Of Table‌ instead RangeSum(Above()) to improve performance here.

Not applicable
Author

Hi Sunny,

Could you please help me with the code. How to do that.

I need to calculate YTD AVERAGE.

Thanks in advance.

sunny_talwar
MVP
MVP

Not sure what the expected output is, but can you check the attached