Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Rolands
Partner - Contributor II
Partner - Contributor II

Average trend line calculation

Greetings, Qlik Aces!

 

I'm creating line chart to analyse values by month compared to previous year. Using trend line to see average value. So, the problem - when analysing current year, the average trend line is calculated by dividing summ of, for example, first two month / 12, no divided by two.

Rolands_0-1615454542961.png

In my opinion the average trend line should be calculated based on month with value, not on total month count.

 

Any ideas how to solve this? 

 

Thank you.

Labels (2)
1 Reply
GaryGiles
Specialist
Specialist

Have you tried calculating the average manually?

sum(Value)/count({$<Month={"=sum(Value)>0"}>} Month)

You would need to add whatever set analysis you are using to limit the time frame.