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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kwonder
New Member

Creating a new table in Power BI

Hello,

 

I'm new to the Power BI Desktop and I'm trying to create a new table that will have columns from the multiple tables I pulled in from my source. Could someone please help me with this?

 

Example:

I have a course table and Instructor table I need to bring certain columns from each table.

1 ACCEPTED SOLUTION
WillT
Community Admin
Community Admin

There are a couple of things you could do here.

 

You could use the Query Editor's "Merge Queries" function to join the two tables together as you pull it into Power BI. Details on that here: https://support.office.com/en-us/article/Merge-queries-Power-Query-FD157620-5470-4C0F-B132-7CA2616D1... This is like a JOIN operation in SQL.

 

You could leave the two tables separate, and create a relationship between them in the Desktop's Data View. If there's a common column (InstructorID or CourseID perhaps?) between the tables this is probably simplest and the relationship might be detected and created automatically for you. More info on that here: https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-create-and-manage-relationships

 

Which one you choose depends on the modelling and analytic questions you have, but as I said the second option is usually the simplest!

 

HTH Will

View solution in original post

3 REPLIES 3
WillT
Community Admin
Community Admin

There are a couple of things you could do here.

 

You could use the Query Editor's "Merge Queries" function to join the two tables together as you pull it into Power BI. Details on that here: https://support.office.com/en-us/article/Merge-queries-Power-Query-FD157620-5470-4C0F-B132-7CA2616D1... This is like a JOIN operation in SQL.

 

You could leave the two tables separate, and create a relationship between them in the Desktop's Data View. If there's a common column (InstructorID or CourseID perhaps?) between the tables this is probably simplest and the relationship might be detected and created automatically for you. More info on that here: https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-create-and-manage-relationships

 

Which one you choose depends on the modelling and analytic questions you have, but as I said the second option is usually the simplest!

 

HTH Will

HarrisMalik
Continued Contributor
Continued Contributor

HI

 

It really depends on what you want to do? It also depends on your model. A good model can answer a lot of your questions without doing a lot. If you can share the structure of your source tables and the questions you want to answer from the data I might be able to help you out.

 

Regards

Harris

bherring1979
Frequent Visitor

I found a blog post about this subject here: http://sqljason.com/2013/02/union-operation-in-dax-queries.html

Hope this helps.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.