Live to Date Consolidations for Year and Month
Posted: Tue May 19, 2009 10:00 am
Hi Guys,
Background to Question
I have created an inventory cube within TM1. My cube contains various dimensions including (Item,Warehouse,Transaction Type, Year, Month and Day, etc)... This allows a user to see what the balance on hand was at any point in time. This cube will work well for Movements and Stock on Hand for the current day. As the user would simply select the 'All Years' consolidation of the Year dimension and 'All Months' consolidation of the Month dimension. However what if I wanted the Stock on Hand for March 2007. In order to acheive the Stock on Hand for March 2007, the user would need to select the '2007 LTD' consolidation which would include all years up to and including 2007. Which would give the total up to and including 2007, however if they select March it would only total up the March movements for each year up to and including 2007.
Question
Therefore is there a way in TM1 for me to say if a consolidation in the Year dimension to change the Month dimension to 'All Months' for each year except for the top level year in which should only show me up to the end of March?
For example if '2007 LTD' is chosen from the Year dimension and March is chosen from the Month dimenion and assuming that the data in cube only goes back to 2004. To say that for years 2004,2005 and 2006 to use the 'All Months' consolidation from the Month dimension, but for 2007 to use the selected element (which is March) from the Month dimension.
My Attempt
I started playing around with the rules for the cube and did the following:
['Q1','2007'] = if(DIMNM('Year', DIMIX('Year',!Year)) @= '2008 LTD',['Full Year'],DIMIX('Month', !Month));
What I was trying to achieve was to say if the '2008 LTD' consolidation is chosen, simply make the 'Q1', '2007' eqaual to the 'Full Year' figure.
This would mean that if select Q1 as the month and "Full Year" as the year, it would mean that 2007 would really return the figure for Full Year and then add this to the Q1 figure for 2008. However it does seem to be working, but instead just returns the value of 2008 only. So I will have to keep plugging along, however if any body has any ideas, I would love to hear your thoughts.
Thanks heaps!
Background to Question
I have created an inventory cube within TM1. My cube contains various dimensions including (Item,Warehouse,Transaction Type, Year, Month and Day, etc)... This allows a user to see what the balance on hand was at any point in time. This cube will work well for Movements and Stock on Hand for the current day. As the user would simply select the 'All Years' consolidation of the Year dimension and 'All Months' consolidation of the Month dimension. However what if I wanted the Stock on Hand for March 2007. In order to acheive the Stock on Hand for March 2007, the user would need to select the '2007 LTD' consolidation which would include all years up to and including 2007. Which would give the total up to and including 2007, however if they select March it would only total up the March movements for each year up to and including 2007.
Question
Therefore is there a way in TM1 for me to say if a consolidation in the Year dimension to change the Month dimension to 'All Months' for each year except for the top level year in which should only show me up to the end of March?
For example if '2007 LTD' is chosen from the Year dimension and March is chosen from the Month dimenion and assuming that the data in cube only goes back to 2004. To say that for years 2004,2005 and 2006 to use the 'All Months' consolidation from the Month dimension, but for 2007 to use the selected element (which is March) from the Month dimension.
My Attempt
I started playing around with the rules for the cube and did the following:
['Q1','2007'] = if(DIMNM('Year', DIMIX('Year',!Year)) @= '2008 LTD',['Full Year'],DIMIX('Month', !Month));
What I was trying to achieve was to say if the '2008 LTD' consolidation is chosen, simply make the 'Q1', '2007' eqaual to the 'Full Year' figure.
This would mean that if select Q1 as the month and "Full Year" as the year, it would mean that 2007 would really return the figure for Full Year and then add this to the Q1 figure for 2008. However it does seem to be working, but instead just returns the value of 2008 only. So I will have to keep plugging along, however if any body has any ideas, I would love to hear your thoughts.
Thanks heaps!