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

Rolling 30-day Average

Hi Guys,

I need to find rolling 30-day average based on the date but need to do achieve this in the script (not by using expressions).

Attached the sample data, which has file name, file size, file date and file type. File Name has two file types. I need to get the rolling 30 day file size average with respect to selections.

Alo I need to create a flag by comparing the normal average and Rolling 30-days average.

(If Normal avg >= Rolling 30-days avg then 0 otherwise 1) - Flag - (This is the reason that I need to achieve this in script itself).


Please help me out.


Thanks,

Siva.

6 Replies
lorenzoconforti
Specialist II
Specialist II

Hi Siva, do you need a 30 rolling average by File Type?

sunny_talwar

So basically you want that for each File Type, it should find the average of last 30 days on any particular date? File Names are different, that doesn't matter?

lorenzoconforti
Specialist II
Specialist II

If what you need is a rolling average by file type, please see attached

I'm sure this can be done much more efficiently but hopefully this helps

MK9885
Master II
Master II

Maybe this one if I understood correctly?

Find the attachment.

Anonymous
Not applicable
Author

Thanks Lorenzo. But I want this rolling average by file date.

lorenzoconforti
Specialist II
Specialist II

Didn't it get answer on this other post? Rolling 30-days Average

Do you mind amending the Excel and insert in there what exactly you are looking for? It will be easier to understand