Kimball Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

DWH architecture problem

4 posters

Go down

DWH architecture problem Empty DWH architecture problem

Post  Skualys Fri Mar 06, 2015 4:21 am

Hello,

I have some trouble to design my data warehouse. Here's the context :

- Financial people register our deals and report a financial snapshot every month. When they register new deals, they also indicates some information like which equipment is sold, at which customer, etc. (our dimensions).

- Project managers add additionnal data to these deals with milestones information (startup project date, customer acceptance date, etc.), also on a monthly basis.

Finance will only use finance information, Project Manager could use both type of information.

Based on this information, I have many possible scenarios, which is the best ?

1st scenario : star schema

In this scenario, I have two separate tables for Finance and Project management. But the thing is that I will have to duplicate reference to dimensions (equipment, customer, etc.) as it is Finance that declare deals and that information have to stay consistant for a same deal.

DWH architecture problem 33bc40a249c1d97c057d222d5bff9c6bb4d16229

2nd scenario : one common table

As we have the same granularity (both are monthly snapshot), we could merge Finance and Project management information in a single table and proposes two views to the users. But I fear that it will become a mess (different enterprise function in a single table...).

DWH architecture problem D711499b22de70a4bee311adf2ed90e26d2cfce6

3nd scenario : snowflake schema

We also could add a "Deal" table, containing all references to other dimensions (customer, equipment, etc.).

DWH architecture problem 53779913fd5d97597a11117c99c79167b174dcad

Thanks in advice for any usefull advice !

Skualys

Posts : 13
Join date : 2014-04-04

Back to top Go down

DWH architecture problem Empty Re: DWH architecture problem

Post  nick_white Sun Mar 08, 2015 7:34 am

Hi, I would approach this as follows:
1. Define what the measures are that you want to report on
2. Define the grain of these measures, which also defines the base set of dimensions that will apply to them
3. Any measures that have the same grain can (but don't have to) go in the same fact table; measures that don't have the same grain cannot go in the same fact tale - so this give you your fact tables.

BTW - I would never expose your underlying tables to users. If you are not using a BI tool, that hides the tables, then I would put create Views and give the users access to the Views rather than the tables
a) This means the users don't have to know how to join the tables as you do this in the Views for them
b) It allows you some flexibility to change the underlying tables without breaking all the reports/queries that use the Views

nick_white

Posts : 364
Join date : 2014-01-06
Location : London

Back to top Go down

DWH architecture problem Empty Re: DWH architecture problem

Post  Skualys Sun Mar 08, 2015 7:45 am

Thanks for your response.

The granularity will be the same (monthly snapshot). I was just a bit annoyed by storing in the same table information coming from two different business process, as I thought one fact table = one business process.

Of course, if I stay on an unique table, I will make two views to users (it will ease our life in the BI tool - especially if we decide to go for QlikView).

Skualys

Posts : 13
Join date : 2014-04-04

Back to top Go down

DWH architecture problem Empty Re: DWH architecture problem

Post  ngalemmo Sun Mar 08, 2015 4:45 pm

When we talk about one fact table = one business process, we are talking about atomic level facts.  That is, transactional level detail of every activity.  As such, the atomic level data across processes is almost never at the same grain and occur at different points in time, hence different fact tables.

In your case, this is an aggregate fact containing summary data collected from different systems at the same time.  Combining them into one table is common.

To your question, 1 & 2 are options, 3 is not.
ngalemmo
ngalemmo

Posts : 3000
Join date : 2009-05-15
Location : Los Angeles

http://aginity.com

Back to top Go down

DWH architecture problem Empty Re: DWH architecture problem

Post  Skualys Mon Mar 09, 2015 2:47 am

Thanks you very much for the detail you gave me, I got a better understanding of the principle of segragation between fact tables.

I will go for an unique table with two views, it will be easier to maintain.

(And obviously, I apologize for my English, I'm French =))

Skualys

Posts : 13
Join date : 2014-04-04

Back to top Go down

DWH architecture problem Empty Re: DWH architecture problem

Post  hang Wed Mar 11, 2015 10:20 pm

I wonder if you should have a Deal coverage factless fact table to store the relationships specific only to Deals in a dedicated centralized place. This fact may not have any referential relationship with other fact table, but can be queried against other facts.

hang

Posts : 528
Join date : 2010-05-07
Location : Brisbane, Australia

Back to top Go down

DWH architecture problem Empty Re: DWH architecture problem

Post  Skualys Thu Mar 12, 2015 2:59 am

Could you explain it to me a bit further (with a schema for example) ? I'm new to dimensional modeling and I'm afraid I don't understand what you are suggesting.

Skualys

Posts : 13
Join date : 2014-04-04

Back to top Go down

DWH architecture problem Empty Re: DWH architecture problem

Post  hang Thu Mar 12, 2015 7:48 am

I am not sure if your deals are similar to retail promotions that stores promotion details for certain products. If so, you would have a deal dimension containing deal price, start date and end date etc. Then you have daily/monthly snapshot to capture what products are associated with which deal, as sales fact my have many products that are not in the deals.

However in other fact, if all your equipments are sold through deals, then you might just store deal key along with other dimension keys in the fact table, as suggested by Negalemmo.

hang

Posts : 528
Join date : 2010-05-07
Location : Brisbane, Australia

Back to top Go down

DWH architecture problem Empty Re: DWH architecture problem

Post  Skualys Thu Mar 12, 2015 7:58 am

hang wrote:I am not sure if your deals are similar to retail promotions that stores promotion details for certain products.  If so, you would have a deal dimension containing deal price, start date and end date etc. Then you have daily/monthly snapshot to capture what products are associated with which deal, as sales fact my have many products that are not in the deals.

However in other fact, if all your equipments are sold through deals, then you might just store deal key along with other dimension keys in the fact table, as suggested by Negalemmo.

Ok, I got it ! In our case (packaging & bottling machine industry), one deal = one equipment sold, it's not retail sales.

Skualys

Posts : 13
Join date : 2014-04-04

Back to top Go down

DWH architecture problem Empty Re: DWH architecture problem

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum