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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Dunner2020
Post Prodigy
Post Prodigy

Creating dim table in Query editor

Hi there,

 

I have one big table (let's called fact table) in the data flow model. The table is about the accident information. One of the columns in the table is about the location of the accident. I want to create a location column of the fact table as a separate dimension table and then connects with the fact table. Is it possible to create a dimension table in power query editor from the existing fact table? 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Dunner2020 , In power query Refer my video

https://www.youtube.com/watch?v=kU2M1LmNvNo

 

Right click Add as new Query -> Convert to table and Delete suplicate

 

DAX - https://www.youtube.com/watch?v=vYxWyt0qNUQ

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
PC2790
Community Champion
Community Champion

In Power query editor, right click on the main table and create a reference table. Then delete the unrequired columns in the reference table keeping the required location column.

Now remove duplicates by right clicking the column which will give you a look up column for Location.

Further the relationship can be created accordingly.

You can also refer this for step by step implementation.

amitchandak
Super User
Super User

@Dunner2020 , In power query Refer my video

https://www.youtube.com/watch?v=kU2M1LmNvNo

 

Right click Add as new Query -> Convert to table and Delete suplicate

 

DAX - https://www.youtube.com/watch?v=vYxWyt0qNUQ

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.