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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Data Modelling (Flat file to Star Schema)

Hello all,

I'm in need of some advice from the data modelling gurus. I have made my first attempt at a star schema data model which i have transformed, in Power Query, from a flat excel file. 

I have done this for practice, and would really like to know if i have approached this correctly.

Here is my current star schema with all columns:

ADPowerBI1_0-1693848643264.png

 

Here is the Column names from the flat file:

ADPowerBI1_1-1693848713695.png


My question is, does this transformation make sense? I am very new to this. Are the dimension tables creating correctly or would you have grouped some categories together?

How do i know if i should use more than one column in my dimension field (excluding ID)?

 

Will this make a difference to performance if i have done this in power query rather than sql?

 

Any help would be appreciated, if you need more info please let me know.

 

Thanks!

 

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @Anonymous ,

 

1- so first of all, you would need to create a dim date table.

refer to this https://youtu.be/-li7sxUxEqA?si=9SvFGgvlyZsa89Gm

 

2-  you would need to put in each dim table all the columns related to it, like for example in customer table you put first name, last name, email, age, address,etc.. 
like in product table, product Id, name, category, sub-category, unit of measure, etc..
make sure to remove all these details from the flat fact table and only keep the IDs.

 

check this about data Modeling
https://www.youtube.com/live/vr304H4O2tQ?si=Y23cKEMp2_OUHfEW

https://www.youtube.com/live/vr304H4O2tQ?si=R8o1z3Xxa8z5Vir5

https://www.youtube.com/live/WjXZWA279Cw?si=d0G-TdWyNUq3dSKc

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote For my Idea 💡



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello @Anonymous ,

 

1- so first of all, you would need to create a dim date table.

refer to this https://youtu.be/-li7sxUxEqA?si=9SvFGgvlyZsa89Gm

 

2-  you would need to put in each dim table all the columns related to it, like for example in customer table you put first name, last name, email, age, address,etc.. 
like in product table, product Id, name, category, sub-category, unit of measure, etc..
make sure to remove all these details from the flat fact table and only keep the IDs.

 

check this about data Modeling
https://www.youtube.com/live/vr304H4O2tQ?si=Y23cKEMp2_OUHfEW

https://www.youtube.com/live/vr304H4O2tQ?si=R8o1z3Xxa8z5Vir5

https://www.youtube.com/live/WjXZWA279Cw?si=d0G-TdWyNUq3dSKc

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote For my Idea 💡



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Anonymous
Not applicable

Thanks for your feedback!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors