Forum Discussion

Dunner2020's avatar
Dunner2020
Post Prodigy
5 years ago
Solved

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? 

 

 

 

2 Replies

  • PC2790's avatar
    PC2790
    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.