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: 
DavidFoster1
Specialist
Specialist

Average trendline

I am trying to show an average trendline on a column chart of weekly opened cases (I have a single dimension Open.WeekYr) . When I try to calculate the same value using the expression =avg(aggr(sum(#Cases),Open.WeekYr)) I get a different value.

Any ideas?

Labels (1)
2 Replies
israrkhan
Specialist II
Specialist II

Hi, David

According to my understanding about Aggr function, you dont need it in one dimensional chart.

i think =sum(sale) and aggr(sum(sale)) will give you same result, if you have one dimension.

so in your scenario, you dont need aggr function, simply, avg(#Cases) will give you result.

kindly correct me if i am wrong...

DavidFoster1
Specialist
Specialist
Author

Sorry for the confusion.

The aggr statement is in a separate text box.