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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors