![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| [Measures].[StockClose]: |
#3
| |||
| |||
|
| Measures].[StockCurrent]: |
#4
| |||
| |||
|
|
PS: since the "ClosingBalance" property may not be defined at higher levels of the [Product] dimension, it may need to be summed across products as well: Measures].[StockCurrent]: Sum(Descendants([Product].CurrentMember, [Product].[Product]), [Measures].[StockClose]- Sum(Except([Time].CurrentMember.Level.Members, PeriodsToDate([Time].[(All)])), [Measures].[StockChange])) - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Hi, While implementing an Inventory Cube, stuck with a problem with the fact table. The fact table has only the movements (deltas) of stock. The movements may not be available on all days. The current stock closing balance is available as a property of the product dimension. Need help to display daily stock balance on a stock/sales analysis. Time dimension is Year, Month, Day. The time span where the analysis is required could be anything - couple of days, months etc in the past. I tried the topsum(), and the example in Spofford's book (page 94), but couldn't make it to work. My intention was to get the daily stock as a calculated member by summing backwards from current stock and then do the analysis. Otherwise i could aggregate all the deltas and arrive at opening stock from the beginning the could sum forward. Lost...Please help. Cheers !! Jimmy |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Hi, The calculations seems to take forever - more than an hour. the cpu utilisation around 30%. I am on AS2K standard edition. Eventhough the hardware got lot of memory, being in a standrad edition limits memory usage. The fact table count is alomost half a million records, the product dimension table count to more than half a million. (it is 10000 products in 50+ warehouses). There are not many dimensions in the cube, Product :warehouse-product and Time :Year-month-day are the major ones. Any suggestions ? Thanks Jimmy George |
#9
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |