cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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

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

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors