Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
alexandernatale
Creator II
Creator II

Star schema...suggestion?

Hi everyone,

 

I work in a large healthcare company (hospitals) and I need to create a single app on QS in order to be in control of some aspects of the production activity.

 

My idea is to create a star schema as shown in the figure.

Schermata 2022-05-10 alle 21.48.54.png

 

The fact table (star center) would be transformed into the list of departments, while the dimensions tables would be the various "types of production" that take place within the company (for example: hospitalizations, outpatient activities, etc.). I'd like to tie it all up with a master calendar, so the pattern I'm thinking about would become the following.

Schermata 2022-05-10 alle 21.49.54.png

 

What do you think about it? Could I have some data model issues? Alternative suggestions?

Labels (3)
5 Replies
danielrozental
Master II
Master II

That won't work as it will create a circula reference.

You should look into concatenating the fact tables or using a link table.

You can find a very good articule about it by Ometis here.

alexandernatale
Creator II
Creator II
Author

thanks @danielrozental for the reply!

I tried to create a simply model on QS.
This is the result:

 

Schermata 2022-05-11 alle 12.02.10.png

the cdc table is the department.
QS created 1 syntetic key...I think that is not a bad idea...

danielrozental
Master II
Master II

That will probably work but ambulatori and ricoveri should be concatenated into a single table to remove the synthetic key.

alexandernatale
Creator II
Creator II
Author

Thanks @danielrozental.

 

Searching in the forum I found this very interesting discussion which shows the following diagram...

 

Schermata 2022-05-13 alle 19.47.43.png

i think that is a good solution for more fact tables...

danielrozental
Master II
Master II

Hi Alexander, you're welcome to try anything you'd like.

My recommendation still stands, you should concatenate both fact tables in order to avoid a circular reference.