Rolling 12 Period over YTD Period Calculation
Posted: Tue Jul 27, 2021 1:50 am
Good Afternoon Everyone,
I am fairly new to TM1, so I am looking for some guidance on a particular business rule calculation. I built a 12-dimension Stats Cube that pulls balances from GL MAIN to populate seven account members. This is to allow for an "A divided by B" calculation. The challenge that I'm facing is that the formula I'm replicating is taking a Rolling-12 YTD Balance from Month 1 and dividing it by a Month 1 YTD Balance.
Jan Rolling 12
Account 1 $4,000,000
Account 2 $1,000,000
Jan YTD
Account 1 $500,000
Account 2 $2,500,000
The code above computes 4M \ 1M and returns 4 inventory turns for Jan Rolling 12 and 0.2 for Jan YTD. However, I want to take 4M divided by 2.5M and return 1.6 inventory turns either in Jan Rolling 12 YTD (or Jan YTD) intersection point. I could simply add the period dimension to the calculation, as shown below, but it's not dynamic which is what I am hoping someone could point me in the right direction.
Thank you!
I am fairly new to TM1, so I am looking for some guidance on a particular business rule calculation. I built a 12-dimension Stats Cube that pulls balances from GL MAIN to populate seven account members. This is to allow for an "A divided by B" calculation. The challenge that I'm facing is that the formula I'm replicating is taking a Rolling-12 YTD Balance from Month 1 and dividing it by a Month 1 YTD Balance.
Jan Rolling 12
Account 1 $4,000,000
Account 2 $1,000,000
Jan YTD
Account 1 $500,000
Account 2 $2,500,000
Code: Select all
['Actual', 'Turns (Gross)'] = C:
['Actual', 'Total Departments', 'Cost of Goods Sold'] \ ['Actual','Total Departments', 'Inventory-FIFO (Gross)'];
Code: Select all
['Actual', 'Jan 21 YTD', 'Turns (Gross)'] = C:
['Actual', 'Total Departments', 'Jan 21 YTD Rolling 12-Month' , 'Cost of Goods Sold'] \ ['Actual','Total Departments','Jan 21 YTD', 'Inventory-FIFO (Gross)'];