SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Two different fact granularities in same fact table?


Two different fact granularities in same fact table?

Author
Message
pietlinden
pietlinden
SSChampion
SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)

Group: General Forum Members
Points: 13570 Visits: 14110
Say I have a database like AdventureWorks that I use to populate my data warehouse. Then I have another data source that has aggregated data by (SalesRegion, Month/Year, Product, TotalUnitsSold, TotalSalesDollars). If I want to compare "my" data (the AW stuff) to the rolled up data, how do I do it? Just create a cube and roll it up as usual, or is there something I have to watch out for? The tricky part is that the "other" data source is aggregated already - there's no breaking it down.

Would I have two different cubes for the two or can I summarize the AdventureWorks data into the same granularity and then drill into my data too (so they're in the same cube?). Hope this all makes sense.

The data I get is something like this:

CREATE TABLE aggSalesData(
SalesRegionID INT,
ProductID INT,
Month TINYINT,
Year TINYINT,
Units INT,
Dollars MONEY
);

Then I would just have all the drilldown stuff in my DimProducts table. Will this work okay? (End goal: compare, as much as possible, "our" sales to the competition's, based on the summary data I get (in the form of aggSalesData). maybe I just have to sit down and read more of Data Warehouse Toolkit?

Thanks!
Pieter
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search