| Designing Analysis Services database for Inventory type applications |
| Written by Vidas Matelis |
| Monday, 18 February 2008 13:34 |
|
!!!!!!!!!!! This is article is a writing in progress. Please check back often to see updates.!!!!!!!!!! When designing Analysis Services database for inventory type applications, there are few design options to choose from. Which option to choose depends entirely on your specific report requirements. Purpose of this article is to describe these options and guide you in choosing one that fits best for your needs. In inventory type application you are trying to answer following questions:
Below I described options and specific design issues. For simplicity, I assumed that all you are interested is just basic count measure. 1. Load all data as transactionsDesign specifics:
2. Load all data as periodic snapshotsDesign specifics
3. Load all data as snapshots at the point of data changeDescription for this option
4. Combine snapshots with transactionsIn my opinion this is an most flexible option with reasonable execution performance. In SQL Server you should create 2 fact tables: one contains transactions for inventory movements and another fact table contains snapshots. This could be periodic snapshots or snapshots a the point of data change. You create cube with 2 measure groups - one for transactions and another for snapshots. All queries for inventory movements should use measures from transaction measure group. All queries to get inventory at the point in time should use measures from snapshot measure group. You can easily write calculations to combine measures from both measure groups and give you results with reasonable query performance. For example, if you have monthly periodic snapshots and need report for a inventory at the 15th of the month, you take inventory from the previous month snapshot and add transactions from 1st to 15th day.
|
Latest Author Articles
- How to use MDW to collect Analysis Services 2008 performance counters
- Analysis Services 2008 performance counters
- Microsoft SQL Server 2008 RC0 - New Adventure Works Sample Databases for SSAS
- SSAS 2008 RC0 - New function SYSTEMRESTRICTSCHEMA for restricted schema rowsets - DMVs
- Excel 2007 Pivot Table with SharePoint On Vista PC - works good after SP1
Top Rated
- SSAS Implementation Best Practices slides in PDF format
- SSRS Report Against a SSAS Parent Hierarchy
- Using AS Data Mining to Add Forecast Values to a Cube
- Handling inter-dimensional members dependency and reducing cube sparsity using reference dimensions in Analysis Services 2005
- Cube structure optimization for MDX query performance in Analysis Services 2005 SP2: Tips for Parent Child Hierarchies usage
- Handling Multiple Calendars with a M2M Scenario
- Passing MDX parameters in Reporting Services reports
- Using UserName to Control Data Access and Default Member in SSAS 2K5 (Carrie Williams)




