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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
jerryr125
Creator III
Creator III

Reference Line - Average - After a Date

Hi -

On a line chart I have the following reference line for the average :

=Avg(aggr(sum(QuantitySold), [SalesDate]))

How can I calculate the average after a specific sales date only, such as 10/25/2020 ?

 

Thoughts  ? Thanks - jerry

1 Solution

Accepted Solutions
Kushal_Chawda
MVP
MVP

@jerryr125  like below

=Avg({<[SalesDate]={">=10/25/2020"}>}aggr(sum({<[SalesDate]={">=10/25/2020"}>}QuantitySold), [SalesDate]))

View solution in original post

2 Replies
Kushal_Chawda
MVP
MVP

@jerryr125  like below

=Avg({<[SalesDate]={">=10/25/2020"}>}aggr(sum({<[SalesDate]={">=10/25/2020"}>}QuantitySold), [SalesDate]))

jerryr125
Creator III
Creator III
Author

Excellent - Thank you very much - Jerry