Hi
Further to my case above: Below please find a table of the data. The Measure I would like to add up 12 months for and roll over monthly is the Measure [ACPR ThisMonth]. The [Sum of USDProRataAC Annually] measure calculates the rolling 12 month total of the [Sum of USDProRataAC] column. However when I try to change the formula from SUM([USDProRataAC]) to SUM([ACPR ThisMonth] I get the following error message: "Calculation error in measure 'factFin'[Sum of USDProRataAC Annually]: The SUM function only accepts a column reference as the argument number 1."
Sum of USDProRataAC Annually:=CALCULATE(SUM([USDProRataAC]), ALL(DateTable[DateKey]), FILTER(ALL(DateTable[DateKey]),DateTable[DateKey]>min(DateTable[DateKey]) -365&& DateTable[DateKey]<=max(DateTable[DateKey]))) works fine.
Sum of ACPR ThisMonth:=CALCULATE(SUM([ACPR ThisMonth]), ALL(DateTable[DateKey]), FILTER(ALL(DateTable[DateKey]),DateTable[DateKey]>min(DateTable[DateKey]) -365&& DateTable[DateKey]<=max(DateTable[DateKey]))) gives error message.
[TABLE="width: 523"]
<tbody>[TR]
[TD]MonthStartDateLastYear[/TD]
[TD]MonthStartDate[/TD]
[TD]Sum of USDProRataAC[/TD]
[TD]Sum of USDProRataAC Annually[/TD]
[TD]ACPR ThisMonth[/TD]
[TD]AAMonths12M[/TD]
[/TR]
[TR]
[TD="align: right"]01.01.2011[/TD]
[TD="align: right"]01.01.2012[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-14,148[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.02.2011[/TD]
[TD="align: right"]01.02.2012[/TD]
[TD="align: right"]-376[/TD]
[TD="align: right"]-14,156[/TD]
[TD="align: right"]-376[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.03.2011[/TD]
[TD="align: right"]01.03.2012[/TD]
[TD="align: right"]-563[/TD]
[TD="align: right"]-14,170[/TD]
[TD="align: right"]-187[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.04.2011[/TD]
[TD="align: right"]01.04.2012[/TD]
[TD="align: right"]-751[/TD]
[TD="align: right"]-14,189[/TD]
[TD="align: right"]-188[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.05.2011[/TD]
[TD="align: right"]01.05.2012[/TD]
[TD="align: right"]-938[/TD]
[TD="align: right"]-14,212[/TD]
[TD="align: right"]-187[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.06.2011[/TD]
[TD="align: right"]01.06.2012[/TD]
[TD="align: right"]-1,126[/TD]
[TD="align: right"]-14,241[/TD]
[TD="align: right"]-188[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.07.2011[/TD]
[TD="align: right"]01.07.2012[/TD]
[TD="align: right"]-1,309[/TD]
[TD="align: right"]-14,269[/TD]
[TD="align: right"]-183[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.08.2011[/TD]
[TD="align: right"]01.08.2012[/TD]
[TD="align: right"]-1,491[/TD]
[TD="align: right"]-14,297[/TD]
[TD="align: right"]-183[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.09.2011[/TD]
[TD="align: right"]01.09.2012[/TD]
[TD="align: right"]-1,673[/TD]
[TD="align: right"]-14,325[/TD]
[TD="align: right"]-182[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.10.2011[/TD]
[TD="align: right"]01.10.2012[/TD]
[TD="align: right"]-1,858[/TD]
[TD="align: right"]-14,354[/TD]
[TD="align: right"]-185[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.11.2011[/TD]
[TD="align: right"]01.11.2012[/TD]
[TD="align: right"]-2,040[/TD]
[TD="align: right"]-14,383[/TD]
[TD="align: right"]-183[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.12.2011[/TD]
[TD="align: right"]01.12.2012[/TD]
[TD="align: right"]-2,222[/TD]
[TD="align: right"]-14,347[/TD]
[TD="align: right"]-181[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.01.2012[/TD]
[TD="align: right"]01.01.2013[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-14,347[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.02.2012[/TD]
[TD="align: right"]01.02.2013[/TD]
[TD="align: right"]-363[/TD]
[TD="align: right"]-14,335[/TD]
[TD="align: right"]-363[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.03.2012[/TD]
[TD="align: right"]01.03.2013[/TD]
[TD="align: right"]-545[/TD]
[TD="align: right"]-14,317[/TD]
[TD="align: right"]-182[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.04.2012[/TD]
[TD="align: right"]01.04.2013[/TD]
[TD="align: right"]-727[/TD]
[TD="align: right"]-14,293[/TD]
[TD="align: right"]-182[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.05.2012[/TD]
[TD="align: right"]01.05.2013[/TD]
[TD="align: right"]-913[/TD]
[TD="align: right"]-14,268[/TD]
[TD="align: right"]-186[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.06.2012[/TD]
[TD="align: right"]01.06.2013[/TD]
[TD="align: right"]-1,096[/TD]
[TD="align: right"]-14,238[/TD]
[TD="align: right"]-183[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.07.2012[/TD]
[TD="align: right"]01.07.2013[/TD]
[TD="align: right"]-1,280[/TD]
[TD="align: right"]-14,209[/TD]
[TD="align: right"]-184[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.08.2012[/TD]
[TD="align: right"]01.08.2013[/TD]
[TD="align: right"]-1,463[/TD]
[TD="align: right"]-14,180[/TD]
[TD="align: right"]-184[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.09.2012[/TD]
[TD="align: right"]01.09.2013[/TD]
[TD="align: right"]-1,647[/TD]
[TD="align: right"]-14,154[/TD]
[TD="align: right"]-184[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.10.2012[/TD]
[TD="align: right"]01.10.2013[/TD]
[TD="align: right"]-1,834[/TD]
[TD="align: right"]-14,130[/TD]
[TD="align: right"]-187[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.11.2012[/TD]
[TD="align: right"]01.11.2013[/TD]
[TD="align: right"]-2,024[/TD]
[TD="align: right"]-14,114[/TD]
[TD="align: right"]-190[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]01.12.2012[/TD]
[TD="align: right"]01.12.2013[/TD]
[TD="align: right"]-2,212[/TD]
[TD="align: right"]-14,105[/TD]
[TD="align: right"]-188[/TD]
[TD="align: right"]12[/TD]
[/TR]
</tbody>[/TABLE]
TIA for any suggestions.
- Inge