Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Combine two measures with two common dimension plus time Expand / Collapse
Author
Message
Posted Tuesday, February 25, 2014 1:36 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, October 1, 2014 5:14 AM
Points: 119, Visits: 486
Hi folks,

It was difficult to select the appropriate title for my question.

Background: The business analyst specify the following report (this is the simplified version):


Also to simplify sopose that I have two "Fact Tables"
- Purchase Orders:


- Inventory:


The challenge: I'm trying to build a cube in order to create a powerpivot report that looks like in the specs.

The drawback: the purchase orders table and the inventory table have both the Article and Country dimension. The problem arises when I want to include the time dimension in the pivot, because the inventory is not related to the time dimension.

Alternative 1: we added a dummy time id to the inventory table and then we could hide columns in the report with NULL values

Alternative 2: include the quantity or sold articles in the purchase order pro month as a calculated member

I'm not satisfy with this solutions and I think I'm missing something here from the theory.

Any comment or suggestion about how to tackle this issue will be appreciated.

Kind Regards,


Paul Hernández
http://hernandezpaul.wordpress.com/
https://twitter.com/paul_eng
Post #1544791
Posted Tuesday, February 25, 2014 8:11 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Monday, July 28, 2014 7:12 PM
Points: 2,148, Visits: 487
Inventory measures are usually modeled based on:

1. A periodic snapshot fact table at a daily or monthly date grain and sometimes.....
2. An accumulating snapshot done for the current month.


A semi-additive measure such as LastNonEmpty or LastChild is usually used to measure the inventory on hand at the end of each period.

One measure group would use the purchase orders fact table and....
One measure group would use the inventory fact table.

Are you SURE you do not have any historical data regarding inventory (no auditing history of previous quantities on hand?)
Post #1544957
Posted Wednesday, February 26, 2014 8:43 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, May 21, 2014 4:09 AM
Points: 37, Visits: 142
i would suggest to use date dimension as a confirmed dimension with 2 fact tables. Create a dateid key in inventory fact table and use date dimension as confirmed dimension(shared dimension)
Post #1545442
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse