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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
huguo_90
Regular Visitor

Create a table from a main table with the M language

Hi there,

I am looking to create a new table independant of 5 columns with the M language in order to select some elements from a main table of 30 columns. I don't really know the M language. How to do it please. Thanks in advance.

 

Have a good day. 

 

Huguo

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @huguo_90 ,

 

In Power Query Editor -> Check the table -> Right-click and click Reference.

vcgaomsft_0-1666057412100.png

In copy -> Select the desired column and  Right-click and click remove other columns.

vcgaomsft_1-1666057471086.png

Next, you can filter the fields by clicking on the small arrows on the fields.

Table.SelectColumns - PowerQuery M | Microsoft Learn

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @huguo_90 ,

 

In Power Query Editor -> Check the table -> Right-click and click Reference.

vcgaomsft_0-1666057412100.png

In copy -> Select the desired column and  Right-click and click remove other columns.

vcgaomsft_1-1666057471086.png

Next, you can filter the fields by clicking on the small arrows on the fields.

Table.SelectColumns - PowerQuery M | Microsoft Learn

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

jbwtp
Memorable Member
Memorable Member

Hi Huguo,

 

If I understand this correctly, you do not need M for this. Just select the [5] columns in the main [30 column] table and then righ-click and select Remove Other Columns  from the context menu.

 

Cheers,

John

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Kudoed Authors