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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
SQL_SousChef
Frequent Visitor

Creating Dim Table in Power query

I have seen some solution already in here and on YouTube as well regarding creating Dim Table from a Fact Table in power query. The examples I have been have been anywhere from 100k to 300k rows Fact Table, right click on column need and create new query from there. My Fact Table is 9m to 10m rows depending on the number of months pulled. The SQL Query itself is not the fastest table to load. My question is should I create an additional table that is pulling distinct ids and names from that Fact Table or should I duplicate the Fact Table I am loading and remove other columns and duplicates. Looking to learn what the best practice for a large table should be for this request.

 

Thank you,

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@SQL_SousChef Is your data source an actual SQL Query as in "SELECT * FROM 'Table'" or are you hitting a view or something? If it is, then it would be best to modify that query to just grab a single column because otherwise it will load your entire fact table twice.



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@SQL_SousChef Is your data source an actual SQL Query as in "SELECT * FROM 'Table'" or are you hitting a view or something? If it is, then it would be best to modify that query to just grab a single column because otherwise it will load your entire fact table twice.



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thank you, yes it is a actual SQL Query where I can select the columns needed. Wasn't sure if that was the best practice or if I could just duplicate and remove the columns since I have the dataset already.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors