Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
paulbatny57
Contributor
Contributor

Finding the Moving Average of a Data Series

Hi Again! I am looking to calculate the moving average of a data series (e.g. MA 7 days). Is it possible to do this by going to the Data Manager tab > Calculated Field > Creating an Expression for the moving average? Or do I need to write a script? I assume that's under Data Manager > Data Load Editor. Thanks in advance for any advice!
1 Reply
Anil_Babu_Samineni

I never user data manager but you can take that as resident and necessary changes since you are not able to unlock the autogenerated script. try this if you ready to use

Load Dim1, Dim2, ..., If(DateField>=Max(DateField, -7) and DateField<=Max(DateField), Avg(Measure)) as Avg_Measure7Days Resident DataManager_Directory Group By Dim1, Dim2, ...;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful