How to Roll over End of Month Stock to Beginning Stock of next month in SQL Server 2000 AS
Posted on 2008-10-19
I have a cube that the has the following
- Transaction Type
The transaction Type dimension classifies all the different transaction codes.
The Sum aggregate at the (ALL) level of the Transaction type dimension is the total changes in inventory for the period, at a location for a product.
I created a Calculated member called BOM (Beginning of Month) with parent dimension 'Transaction Type' and Parent Member '(All)'.
The formula = [Time].prevmember, [Transaction Type].(All)
The BOM rolls the amount at 'all' but the BOM member is not aggregated up to the Transaction Type (All) for the next period.
Initial Stock Take 100
Total at (ALL) 110
Total at (ALL) -5
Total at (ALL) 5
... and so on ...
In the Dimension Browser
Initial Stock Take
BOM (calculated member)
I assume that Transaction Type dimension at level all will sum all children INCLUDING the calculated member BOM?
Why doesn;t this work?
Anyone can help me?