Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

A tricky Question relate to aggr

Hi everyone,

I would like to do the following calculation with 2 fields (Date and Price)

e.g. Date Price

DatePriceAverage PriceAverage of Average price
Jul-011
Aug-0121.5
Sep-01321.75
Oct-0142.52
Nov-01532.25
Dec-0163.52.5
Jan-02742.75
Feb-0284.53
Mar-02953.25


e.g. In Nov-01,

Average price = (1+2+3+4+5)/5 = 3

Average of Average price = (1.5+2+2.5+3)/4 = 2.25

My problem is that: I want one figure 3.25 (the yellow one). How can write the formula?

That is, instead of using a pivot table for so many row, I want to get the figure of 3.25 directly.

DateAverage of Average price
Mar-023.25


Any thought?

Or, it will be great if there is anyone can help to tell me:

In Script: How can I get the sum/avg/stdev of increasing time periods?

That, in Nov 01, I get the sum of price from the beginning up to Nov 01 only (Dec 01 data existing, but I don't want to include it or any data after that date)

Many thanks,

Ivan

0 Replies