Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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 ?

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

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))