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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Learning how to setup a Star Schema

MattSnyder_0-1667237646363.png

 

 

Hello everyone,

 

Prior to this I have only used flat tables so the world of data modeling is still really new to me and I hope to learn how to utilize it as it looks to be way more performant in the long run.

 

My company is asking me to create a report that showcases their sales reps' number of calls, if they attend the "Monday Morning Strategy Meeting" and if they've submitted their "Month-End" reviews.

 

I've pulled the data from our Dynamics server and I'm trying to figure out how to connect these all together so that I can utilize a date slicer and another slicer to filter it down to one single sales rep.

 

They've also asked me to link the "User Location Authority" table which will provide dynamic row-level security based on their UserPrincipalName of who's viewing the report.

 

Can someone explain or point me in the right direction here?

 

Every single table has an "ownerid" so I thought that would be a good way to connect them, but it doesn't behave how I thought it would.

 

Thanks in advance - you guys rock!

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Anonymous Well, in "proper" star schema design, your fact table really only contains columns that are used to relate to dimension tables and the actual fact (numbers) you wish to report on. The dimensional columns in this table repeat values. The dimension tables should only contain a single row for each dimensional identifier and thus these tables are the 1 side of the relationship and the fact table is the many (*) side of the relationship. So your dimension tables filter your fact table but not vice-versa. 

 

The AdventureWorks database is a good example of a database setup to provide a star schema data model. Understand star schema and the importance for Power BI - Power BI | Microsoft Learn

 

The issue with this overall though is that rarely, if ever, in the real world that data can perfectly conform to a star schema. It's tough to tell from just an image of your data model, but it would appear to me that you have multiple fact tables involved and you are going to need to merge those into a single fact table for starters.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Super User
Super User

@Anonymous Well, in "proper" star schema design, your fact table really only contains columns that are used to relate to dimension tables and the actual fact (numbers) you wish to report on. The dimensional columns in this table repeat values. The dimension tables should only contain a single row for each dimensional identifier and thus these tables are the 1 side of the relationship and the fact table is the many (*) side of the relationship. So your dimension tables filter your fact table but not vice-versa. 

 

The AdventureWorks database is a good example of a database setup to provide a star schema data model. Understand star schema and the importance for Power BI - Power BI | Microsoft Learn

 

The issue with this overall though is that rarely, if ever, in the real world that data can perfectly conform to a star schema. It's tough to tell from just an image of your data model, but it would appear to me that you have multiple fact tables involved and you are going to need to merge those into a single fact table for starters.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.