Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Infrecon
Frequent Visitor

Complex Modeling Question (Hospital Management System)

Have a more complex modelling question which is not apparent to me yet:

Background:

Have two different data sets:

1. A general one with benchmarks from all hospitals, granularity is at case level, on cost level partly already aggregated.

2. An internal data set from one hospital, where further parameters can be extracted.

 

Objective:

- On the one hand, I would like to do analyses on the benchmark set, but also combine it with the other internal data if necessary.

 

Questions:

1. How do I build a data model for the benchmark set that is performant?

 

The following tables are available:

 

Case Table (Excerpt) incl. 2 Mio Rows (Unfortunately the patient id is not available):

Case_IDCase_NrInsuranceAdmission_DateDischarge_DateDRG...
AAA_20221312312313123123private23.01.202230.1.2022A45G...

AAA_202218124123

18124123general1.2.20224.2.2022C65G...
BBB_20221451535414515354general31.1.20224.2.2022I75F...
.....................

 

Diagnosis Table (Excerpt) incl. 5 Mio Rows (One line per diagnosis, with classification primary or secondary diagnosis):

 

Case_IDDiagnosisClassification
AAA_202213123123F51.0Primary

AAA_202213123123

I71.9Secondary
AAA_202213123123I14.0Secondary
AAA_202218124123A90.8Primary
.........

 

Procedures Table (Excerpt) incl. 8 Mio Rows (One line per procedure):

 

Case_IDProcedureDate_Procedure...
AAA_202213123123Z812.0024.01.2022...

AAA_202213123123

Z814.0025.01.2022...
AAA_202213123123G103.0028.01.2022...
AAA_202218124123Z931.001.2.2022...
............

 

Cost Table (Excerpt) incl. 10 Mio Rows (One line per cost element):

 

Case_IDCost ElementValue...
AAA_202213123123Doctors4124.10...

AAA_202213123123

Nurses232.90...
AAA_202213123123OR293.20...
AAA_202218124123Material294.10...
............

 

In fact, I have several fact tables with different granularities. Case table at case level, the others at sublevels.

One possibility would be to join the tables, but then I would have a huge table.

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Infrecon,

For the power bi data model, it should be suitable to build relationships with the star schema. (fact table link with dimension tables and use them as bridges to link other tables)

Understand star schema and the importance for Power BI - Power BI | Microsoft Docs

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Infrecon,

For the power bi data model, it should be suitable to build relationships with the star schema. (fact table link with dimension tables and use them as bridges to link other tables)

Understand star schema and the importance for Power BI - Power BI | Microsoft Docs

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors