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

Defining the granularity for a Fact Table

3 posters

Go down

Defining the granularity for a Fact Table Empty Defining the granularity for a Fact Table

Post  KarinaM Tue Jul 29, 2014 3:14 pm

I am modeling a DWH for a private practice. They perform hemodialysis and the goal of the DWH is improve the prognosis and quality of life of the patients. We have a table with the hemodialysis records, and many to many relation with "vital signs" (pulse and blood pressure before, during and after hemodialysis) and zero to many with "complications". The original idea was to analyze the evolution of the patients in hemodialysis and my first approach was to build a hemodialysis fact table. Now, I dont know how to model vital signs (min 0 max 70 average 22 per hemodialysis) and complications.

Thank you for any idea.

KarinaM

Posts : 1
Join date : 2014-07-28

Back to top Go down

Defining the granularity for a Fact Table Empty Re: Defining the granularity for a Fact Table

Post  BoxesAndLines Tue Jul 29, 2014 7:05 pm

You're not measuring, or trending in this case hemodialysis, your're trending vital signs. Hemodialysis would be a dimension if there are important attributes other than the date when it occurred. I would put all vital signs in the fact table. Complications could be a bridge table or another fact table altogether.
BoxesAndLines
BoxesAndLines

Posts : 1212
Join date : 2009-02-03
Location : USA

Back to top Go down

Defining the granularity for a Fact Table Empty Re: Defining the granularity for a Fact Table

Post  ngalemmo Wed Jul 30, 2014 1:42 am

I agree with B&L. There would be additional dimensions identifying what each complication (complication type) or vital sign measurement (measurement type) represents.

The procedure (hemodialysis) could be an actual or implied dimension. If the intent is to only every use it for tracking hemodialysis and nothing else … ever, then you really don't need it as a physical dimension. However, if it is ever to be used for other procedures, then having a procedure dimension is critical. Even if you don't think you need it, put it in. It saves a lot of headache later.
ngalemmo
ngalemmo

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

http://aginity.com

Back to top Go down

Defining the granularity for a Fact Table Empty Re: Defining the granularity for a Fact Table

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