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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
francisvandergr
Partner - Creator II
Partner - Creator II

Total avg in linechart

I like to have an avg of Total(Sales) /  quantity till the periode in my chart

Accumalate is not the solution

I include an example

Has someone a solution ?

Labels (1)
1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

May be like this..

=Rangesum(above(total Sum(Sales),0,Period))/

Rangesum(above(total Sum(Quantity),0,Period))

View solution in original post

3 Replies
Anonymous
Not applicable

add new Expression: aggr(avg(Sales) / Quantity,Period)

sunny_talwar
MVP
MVP

Try this:

RangeSum(Above(Sum(Sales), 0, RowNo()))/RangeSum(Above(Sum(Quantity), 0, RowNo()))


Capture.PNG

UPDATE: Make sure you set Accumulation back to No Accumulation

settu_periasamy
Master III
Master III

May be like this..

=Rangesum(above(total Sum(Sales),0,Period))/

Rangesum(above(total Sum(Quantity),0,Period))