Forum

Create a Table from...
 
Notifications
Clear all

Create a Table from Columns

4 Posts
2 Users
0 Reactions
180 Views
(@raffrobb)
Posts: 38
Trusted Member
Topic starter
 

How do I create a separate table from 3 columns from an existing table. I want to merge existing table to new table, eventually.

I read through M documentation and viewed a couple of videos, still not clear.

 

Thanks

Robb

 
Posted : 23/09/2020 12:48 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Robb,

I'm not 100% clear on what you want, but if you want to merge a table to itself, you can do this by selecting the table in both drop downs in the merge dialog box.

Alternatively, if you want to make further modifications to the data, then you can duplicate the query for the purpose of creating a separate table that consists of the 3 columns you want. In the Power Query editor, right-click the query name > Duplicate.

Mynda

 
Posted : 23/09/2020 2:13 am
(@raffrobb)
Posts: 38
Trusted Member
Topic starter
 

Hi Mynda:

 

Thanks, makes sense.

What does the Table.FromRecords function do.  Is this an alternative to duplicating the query and keeping three columns?

 

Thanks

Robb

 
Posted : 23/09/2020 7:21 pm
(@mynda)
Posts: 4761
Member Admin
 

Not really. Table.FromRecords creates a table from lists. You've got tables that you want to extract columns from to make a new table. 

 
Posted : 23/09/2020 9:21 pm
Share: