Skip to Content
author's profile photo Former Member
Former Member

Rolling averages


We have a business requirement to have some computed accounts in the hierarchy.

1) Some accounts are categorized as rolling averages. Meaning this account represents average of YTD accumulation of a different account. Like Rolling average of Inventory account.

AVGINV(Jan) = INV(Jan)

AVGINV(Feb) = (INV(Jan) + INV(FEB))/2

AVGINV(Mar) = (INV(Jan) + INV(FEB) + INV(MAR))/3 so on

How do i achieve this

2) For some avg accounts, sometimes the source account itself could be a dynamic calculated account .i.e sum of collection of accounts. Like in above case INV itself is a computed account as sum of 10 other accounts.

3) I have some calculated accounts which represents sum of 25 other accounts. Isn't it too much for MDX.

Can you share your thoughts on how you would go about implementing this. Ours is a Periodic application, NW 7.5

- Not sure it is advisable to have dimension logic for this kind of requirement. Also how to do it using MDX if we have to.

- But if we go with script logic, can a calculated account be part of calculation for other calculated account in script logic?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 12, 2011 at 02:40 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2011 at 04:27 AM


    If you want to use a dimension formula, it should be something like:

    SUM({(OpeningPeriod([TIME].CurrentMember):([TIME].CurrentMember))},[ACCOUNT].[INV]) / ([TIME].CurrentMember.Properties("MONTHNUM"))

    Please note that this is just an example, and only considers that the CV of time is a month. However, if you select a parent member for the time dimension, the formula might not work properly. You will need to adjust your formula based on the actual requirement.

    Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.