What is an efficient way to calculate rolling average in a data flow?
Hi experts,
I am reaching out to seek opinion on the most efficient way to calculate a rolling average based on current and prior months values in a data flow. Curious to know if using the time function period offset -1, -2, -3 etc. can be the only way to calculate this or if peope have found other ways that are maybe more efficient?
I have attached an example screenshot from a data flow step for reference.
Thanks
Accepted Answers
-
Dear Ken,
thanks for your question.
I think you solution is the moste common way to performa a rolling average calculation.
Alternatively you can think about using Analytical Functions inside the Block Configuration. But I think the period offset has the better performance and is working dynamically.
Hope it helps.
regards
Alex
3 -
Hi @Ken Walsh,
what about the Yearly Moving Average? This function can be combined with the Cycle option to create different rolling periods on which the average should be calculated. For example, on a monthly InfoCube, setting the cycle to 4 returns the cumulated value on the past four months divided by four, i.e. the average on a four month rolling range.
4
Answers
-
Thank you @Alexander Kappes and @Leone for both of your responses above, this is very helpful!
Have a good weekend ahead!
0
Categories
- All Categories
- 2K Forums
- 1.8K Platform
- 174 Academy
- 334 Resources
- 1 Board Knowledge Base
- 50 Best Practices
- 49 How-To Guides
- 19 Board Advocacy Program
- 199 Blog
- 4 Groups Hub
- 4 About Groups
- New Community Members
- Board Community Captains
- DACH
- Japan
- 5 Community Captains
- 1 About Community Captains
- 3 Meet the Community Captains
- 1 Topics & Thought Starters
- Learn from the Board Captains
- Release Notes
- Academy
- 40 Training
- 2 Board Academy
- 8 ILT/VILT Course Catalogue
- 13 e-Learning Course Catalogue
- 4 Academy Forum
- 1.3K Idea Exchange
- 342 Partner Hub
- 94 Support
- 14 FAQ's
- Customer Support Portal
- 54 Support Articles
- BEAP