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

count for a certain selected year/month

I'm having trouble writing a set analysis.

I want to calculate the avg(sum(weight)) for this year or for a selected month.

The month is also a calculated field: month(empty_date)

Because emprt_date is a timestamp.

Can anyone help me write this?

Labels (1)
1 Reply
datanibbler
Champion
Champion

Hi,

sum() is an aggregation function as is avg() - you can't put one around the other afaIk. Try

>>> aggr(sum(weight), month) <<<

instead.

HTH

Best regards,

DataNibbler