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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

SQL Views | Do you import fact table with a bunch of joins? Or seperate fact and dim tables?

Hi all -

 

When you're connecting to a SQL db, are you usually creating some sort of view in the db to connect to? In my experience, I've usually just make 1 view that contains all fields and dimensions required. But the issue with this, is that when I import it, it's not in a star schema model.

 

My question is, do folks usually seperatly import dimension tables? and have their fact table as a stand alone? When I was getting into Power BI, I would create star schema's from a flat CSV file by creating indexes, linking PK/FK together in the data model view, etc.

 

Looking for some best practices here - thank you!

1 REPLY 1
AlexisOlson
Super User
Super User

In general, I try to have views or tables shaped like I want on the SQL server so that I only have to load them without many additional steps in the query editor. This means loading separate fact and dimension tables rather than a big Frankentable that needs to be separated into pieces.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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