topic Re: Use Formula taking reference of a particular cell across any time period in Anaplan Platform
https://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/65140#M12106
<P><LI-USER uid="29030"></LI-USER> </P><P>Try it this way;</P><P>1. Change your current mean formula to MOVINGSUM(Historical Sales, -(Cumulated History Periods), -1, AVERAGE). It's the same formula without the IF condition. Call this 'Mean Across Time'.</P><P>2. Now another line item, without any dimensions, with the formula: PERIOD(CURRENTPERIODSTART()). Call it 'Current Period'</P><P>3. Now your final line item which you will refer for other calculations when you need mean; have the dimension of time and the formula will be:</P><P>Mean Across Time[LOOKUP: Current Period]</P><P> </P><P>Let me know if this works</P><P> </P><P>Regards,</P><P>Anirudh</P>Thu, 26 Mar 2020 03:03:42 GMTanirudh2020-03-26T03:03:42ZUse Formula taking reference of a particular cell across any time period
https://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/64244#M11872
<P>Hi - Please help me how I can achieve the below expectation using a formula:</P><UL class="lia-list-style-type-circle"><LI>Say, I have 10 periods: 6 periods in past and 4 periods in future (i.e. the 7th period is the current period).</LI><LI>I calculate the mean of the first 6 periods (past periods) and store the same in the current period (say line item "Mean").</LI><LI>Now, I want to calculate the deviation of the actuals (values in the past) from the mean value.</LI><LI>But mean value is present only in the current period.</LI></UL><P>How can I do 'Actuals - Current period mean value' across each time period in the past? The excel equivalent of this is using the dollar sign for a cell value (so the cell value of mean is fixed).</P><P>Thanks,</P><P>Regards,</P><P>Guru</P>Wed, 18 Mar 2020 20:32:21 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/64244#M11872GuruAP2020-03-18T20:32:21ZRe: Use Formula taking reference of a particular cell across any time period
https://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/64310#M11876
<P>Great question Guru,</P><P> </P><P>The $ sign equivalent in Anaplan is to r<STRONG>emove the particular dimension in the line item</STRONG>. So what you have to do is calculate your current period value in a line item and then remove the time dimension from that line item (refer screenshot)</P><P> </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anirudh_0-1584587718044.png" style="width: 999px;"><img src="https://community.anaplan.com/t5/image/serverpage/image-id/31064i4308F3FD1DA02F29/image-size/large?v=v2&px=999" role="button" title="anirudh_0-1584587718044.png" alt="anirudh_0-1584587718044.png" /></span></P><P> </P><P>Subsequently when you refer this line item to others, it will subtract only the current period value</P><P>Let me know if you need help setting this up, you will need to do it using a lookup formula</P><P> </P><P>Regards,</P><P>Anirudh</P>Thu, 19 Mar 2020 03:15:47 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/64310#M11876anirudh2020-03-19T03:15:47ZRe: Use Formula taking reference of a particular cell across any time period
https://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/64312#M11877
<P>Guru-</P><P>By using TIME.'Current Period' in a formula it will always pull in the current period based on the model time settings. You could either use this with a Select Statement: Mean Value[SELECT: TIME.'Current Period'] -or- by putting a new line item in a SYSTEMS Module for Current Period with a formula of TIME.'Current Period'. Then your formula would read: Mean Value[LOOKUP:Current Period Line item]</P><P> </P><P>Hope this helps,</P><P>Jason</P><P> </P>Thu, 19 Mar 2020 03:23:08 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/64312#M11877jasonblinn2020-03-19T03:23:08ZRe: Use Formula taking reference of a particular cell across any time period
https://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/64812#M12009
<P>Hi,</P><P> </P><P>As long as Planual recommends to not hardcode any values directly in the formulas and make the calculation scalable, the best way would be to get the Mean calculated properly first.</P><P>Do it on a separate line item with required dimensions only.</P><P>If you always need Mean be calculated as a sum of 6 months, then as said earlier - you do not need the timescale for calc. Do that 6 months sum once and consider that a fixed value to linked to any certain month for further reference</P><P> </P><P>If Mean should be calculated differently for every month within a year and you know the exact rule on how to calc it - use timescale as a dimension and design the scalable formula for calculation. </P><P>For example you can get values for only actualised months via IF formula and put 0 for all remaining periods. In a next step you can refer SELECT: TIME.ALL PERIODS or SELECT: TIME.YTD to get the sum of all actualised periods and use that value as a denominator in you original calculation. There are also some different techniques available if you work within few years - to use LOOKUP by Year for example, but I hope something simple can work in your case</P>Mon, 23 Mar 2020 15:30:26 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/64812#M12009elena.barinova2020-03-23T15:30:26ZRe: Use Formula taking reference of a particular cell across any time period
https://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/64922#M12043
<P><LI-USER uid="29030"></LI-USER> and <LI-USER uid="4411"></LI-USER> </P><P>If you intend to use the MEAN calculation across multiple modules then I would create a new module and remove the time dimension. </P><P> </P><P>TIMESUM formula can be used to calculation the mean AVERAGE.</P><P> </P><P>The formulas in this new module refer to line items which should be created in a current time properties module. If you have already created such a module to hold all your current time properties add the following two line items. If you have yet to build this module do so now as it will prove invaluable as the model develops. This new time properties module should contain no dimensions and only the following line items.</P><P> </P><P>Module name - <STRONG>Current Time Properties</STRONG></P><P> </P><P>1. Line item name - <STRONG>Current Period</STRONG>, Format - Time period months, formula - PERIOD(CURRENTPERIODEND())</P><P>2. Line item name - <STRONG>Current Year</STRONG>, Format - Time period years, formula - Current Period</P><P>3. Line item name - <STRONG>Current Year Start</STRONG>, Format - Time period months, formula - PERIOD(START(Current Year)) </P><P> </P><P>In new module create the following three line items;</P><P> </P><P>Module name - <STRONG>MEAN Calculation</STRONG></P><P> </P><P>1. Name - <STRONG>Mean</STRONG>, Format - Number, Formula - TIMESUM(source module.source line item, <STRONG>Current Time Properties.Current Period</STRONG>, <STRONG>Current Time Properties.Current Year Start</STRONG>, AVERAGE)</P><P> </P><P>Notice how I have used the current period and current year start line items from the time properties module to inform the function over which periods to calculate the MEAN. As the current period is updated so will the range over which the calculation operates. Therefore, it updates dynamically as the year progresses. </P><P> </P><P>Now rather than using subsidiary view to hold the MEAN calculation you can now reference it throughout you model if the circumstances required are the same. This ensures that you are calculating once and referencing many times a key point in managing the size and performance of your models. </P><P> </P><P>This approach also does not require you to use any LOOKUP functions which can frustrate summary options as the only option available is SUM. This is likely to not be appropriate if the calculation is to incorporated into a complex function downstream where the summarising across time and up hierarchies means the FORMULA summary option is required. </P><P> </P><P>Chris </P><P> </P>Tue, 24 Mar 2020 10:36:18 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/64922#M12043ChrisHeathcote2020-03-24T10:36:18ZRe: Use Formula taking reference of a particular cell across any time period
https://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/65008#M12074
Hi Anirudh - We want to normalize the sales history by calculating the outliers. The outliers we decided will be:<BR />Mean - (Factor) * (Standard Deviation)<BR />Mean + (Factor) * (Standard Deviation)<BR />For mean, I did the following on the sales history:<BR />IF PERIOD(START()) = TIME.'Current Period' THEN MOVINGSUM(Historical Sales, -(Cumulated History Periods), -1, AVERAGE) ELSE 0<BR />With this, I have the MEAN calculated in the current period.<BR />But for standard deviation, I need to have the deviation to calculate each sales history in each time bucket with that of the mean.<BR />When I remove the time scale, it says START() function is used.<BR />So wondering how I can achieve this.<BR />Thanks,<BR />Regards - GuruWed, 25 Mar 2020 09:33:47 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/65008#M12074GuruAP2020-03-25T09:33:47ZRe: Use Formula taking reference of a particular cell across any time period
https://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/65140#M12106
<P><LI-USER uid="29030"></LI-USER> </P><P>Try it this way;</P><P>1. Change your current mean formula to MOVINGSUM(Historical Sales, -(Cumulated History Periods), -1, AVERAGE). It's the same formula without the IF condition. Call this 'Mean Across Time'.</P><P>2. Now another line item, without any dimensions, with the formula: PERIOD(CURRENTPERIODSTART()). Call it 'Current Period'</P><P>3. Now your final line item which you will refer for other calculations when you need mean; have the dimension of time and the formula will be:</P><P>Mean Across Time[LOOKUP: Current Period]</P><P> </P><P>Let me know if this works</P><P> </P><P>Regards,</P><P>Anirudh</P>Thu, 26 Mar 2020 03:03:42 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/65140#M12106anirudh2020-03-26T03:03:42ZRe: Use Formula taking reference of a particular cell across any time period
https://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/65163#M12115
<P>Hi <LI-USER uid="29030"></LI-USER> ,</P><P> </P><P>I tried to simulate your requirement here to calculate the Mean, standard deviation, Lower Bound Outlier and Upper Bound Outlier based on actuals. for that I have created three Modules called Data Module, Stats Module, Time Period Module. Stats Module is not using time dimension. Current Period is <STRONG>W/c 5 Jan 20.</STRONG></P><P> </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naushad786_0-1585207069483.png" style="width: 999px;"><img src="https://community.anaplan.com/t5/image/serverpage/image-id/31408i2CDD7499AD44753F/image-size/large?v=v2&px=999" role="button" title="naushad786_0-1585207069483.png" alt="naushad786_0-1585207069483.png" /></span></P><P> </P><P><span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="naushad786_1-1585207113426.png" style="width: 999px;"><img src="https://community.anaplan.com/t5/image/serverpage/image-id/31409i19A2365BA3FA19F2/image-size/large?v=v2&px=999" role="button" title="naushad786_1-1585207113426.png" alt="naushad786_1-1585207113426.png" /></span></P><P> </P><P> </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naushad786_3-1585207198549.png" style="width: 999px;"><img src="https://community.anaplan.com/t5/image/serverpage/image-id/31411iDF4ACC768D30C054/image-size/large?v=v2&px=999" role="button" title="naushad786_3-1585207198549.png" alt="naushad786_3-1585207198549.png" /></span></P><P> </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naushad786_2-1585207174353.png" style="width: 999px;"><img src="https://community.anaplan.com/t5/image/serverpage/image-id/31410i86C0702B19400A69/image-size/large?v=v2&px=999" role="button" title="naushad786_2-1585207174353.png" alt="naushad786_2-1585207174353.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naushad786_4-1585207290235.png" style="width: 999px;"><img src="https://community.anaplan.com/t5/image/serverpage/image-id/31412i9856BBEA46B985E3/image-size/large?v=v2&px=999" role="button" title="naushad786_4-1585207290235.png" alt="naushad786_4-1585207290235.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naushad786_5-1585207310233.png" style="width: 999px;"><img src="https://community.anaplan.com/t5/image/serverpage/image-id/31413iE55D271184566947/image-size/large?v=v2&px=999" role="button" title="naushad786_5-1585207310233.png" alt="naushad786_5-1585207310233.png" /></span></P><P> </P><P>Hope, It will help you.</P><P> </P><P>Thanks,</P><P>Naushad</P><P> </P><P> </P>Thu, 26 Mar 2020 07:25:35 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Use-Formula-taking-reference-of-a-particular-cell-across-any/m-p/65163#M12115naushad7862020-03-26T07:25:35Z