topic Re: Simple yearly average in Anaplan Platform
https://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47648#M6121
<P>Yep </P><P>This assumes uniformity across all other dimensions, meaning you don't need to calculate the actuals for other list members</P><P> </P><P>1. Create a time settings module (if you haven't already got one)</P><P>2. Add a line item (e.g "values to count", ) and enter "1" against each applicable month. Hopefully you can calculate this from the data somewhere so it is not manual, but let's start simply first!</P><P>3. The year summary will then add up the number of months with actuals</P><P>4. In your formula, refer to the line item from 2 (e.g. YEARVALUE(values to count) as the denominator</P><P> </P><P>If you need to be specific in the target module, unfortunately we don't have an average function that works like excel to only count values so:</P><P>1. Create a line item as 2. above in the target module using something like IF values <>0 then 1 else 0</P><P>2. Use this line item as the YEARVALUE(xx) denominator</P><P> </P><P>Hope that helps</P><P>David</P>Mon, 24 Jun 2019 11:29:28 GMTDavidSmith2019-06-24T11:29:28ZSimple yearly average
https://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47615#M6115
<P>Hi All</P><P> </P><P>having completed the 102 course I am in the process of building my first model, so please be gentle if I have asked a ridiculious question but I really cant figure this out.</P><P> </P><P>I have a line item showing balances across time periods and I would like a second line that shows the average for the financial year for the same time periods, I feel like this should be really easy but having read through parts of Anapedia and the forum I feel like I'm getting nowhere.</P><P> </P><P>I believe it is something to do with timesum but I have yet to figure out how to identify the start and end periods for a financial year to feed into that calculation.</P><P> </P><P>Please help!</P><P> </P><P>Stewart</P>Mon, 24 Jun 2019 10:17:28 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47615#M6115stewart.jardine2019-06-24T10:17:28ZRe: Simple yearly average
https://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47616#M6116
<P><LI-USER uid="20619"></LI-USER> </P><P>No issues with asking, that is what this forum is for!!</P><P> </P><P>There is a function called YEARVALUE() which returns the total for the year for a time based line item</P><P> </P><P>So to get an average you can do YEARVALUE(Line item)/12, for months, YEARVALUE(Line item)/52 for weeks etc.</P><P>That assumes you're using standard timescales</P><P>You can also use an Average summary method in which case the divisor is not needed</P><P> </P><P>There are further "rolling" calculations you can do using TIMESUM and MOVINGSUM, but unless you need the average to move each month, you should be good with the above</P><P> </P><P>I would ask why you need the same value in each month. That could be calculating more than you need. If you need to perform a calculation, you could create a module by year to hold the average and then refer to it in the calculation</P><P> </P><P>I hope that helps and welcome to Anaplan modelling!</P><P>David</P><P>I hope that helps</P>Mon, 24 Jun 2019 10:32:17 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47616#M6116DavidSmith2019-06-24T10:32:17ZRe: Simple yearly average
https://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47618#M6117
<P>thanks David, appreciate the quick response, I had looked at using the yearvalue function but from my understanding it was restricted to calculating using the same summary method as the line item I am getting the value for. </P><P> </P><P>I would like to show the closing balance as the summary function for my balances and as such have set it up that way and if possible would rather not adjust that just to get this sum to work.</P><P> </P><P>the reason I am trying to get the same value in each month of the financial year is actually that this is the first part of a more calculated formula that will divide a yeartodate() figure by the result of this formula e.g.</P><P> </P><P>x = yeartodate(writeoffs)/[financialyearavearge](balance)</P><P> </P><P> with [financialyearavearge] being the headache I'm trying to resolve</P><P> </P><P>Stewart</P><P> </P>Mon, 24 Jun 2019 10:41:14 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47618#M6117stewart.jardine2019-06-24T10:41:14ZRe: Simple yearly average
https://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47623#M6118
<P>Ok, makes sense, and you are correct, YEARVALUE won't work here due to the summary method</P><P>The simplest way here is to have a second line item with the summary method as SUM and use that in the calculation</P><P> </P><P>There are other space saving methods, but due to the issue of summing out of a timescale (due to block structure of Anaplan), these get quite involved, so let's just keep it simple!!</P><P>David</P>Mon, 24 Jun 2019 11:01:24 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47623#M6118DavidSmith2019-06-24T11:01:24ZRe: Simple yearly average
https://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47647#M6120
<P>thanks David, I have now created another line item that is a sum and allows me to use the yearvalue function however this has pointed out another small issue... for my first year of actuals I don't have 12 months worth of data and so taking my newly created yearvalue and simply dividing it by 12 doesn't work. is there a function that will generate the number of months present in any given financial year?</P>Mon, 24 Jun 2019 11:22:18 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47647#M6120stewart.jardine2019-06-24T11:22:18ZRe: Simple yearly average
https://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47648#M6121
<P>Yep </P><P>This assumes uniformity across all other dimensions, meaning you don't need to calculate the actuals for other list members</P><P> </P><P>1. Create a time settings module (if you haven't already got one)</P><P>2. Add a line item (e.g "values to count", ) and enter "1" against each applicable month. Hopefully you can calculate this from the data somewhere so it is not manual, but let's start simply first!</P><P>3. The year summary will then add up the number of months with actuals</P><P>4. In your formula, refer to the line item from 2 (e.g. YEARVALUE(values to count) as the denominator</P><P> </P><P>If you need to be specific in the target module, unfortunately we don't have an average function that works like excel to only count values so:</P><P>1. Create a line item as 2. above in the target module using something like IF values <>0 then 1 else 0</P><P>2. Use this line item as the YEARVALUE(xx) denominator</P><P> </P><P>Hope that helps</P><P>David</P>Mon, 24 Jun 2019 11:29:28 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47648#M6121DavidSmith2019-06-24T11:29:28ZRe: Simple yearly average
https://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47808#M6188
<P>thats done it, thanks</P>Wed, 26 Jun 2019 10:25:20 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Simple-yearly-average/m-p/47808#M6188stewart.jardine2019-06-26T10:25:20Z