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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
pat_energetics
Advocate II
Advocate II

Selectcolumns function

Hi all,

Does anyone have any tips or examples on the use of the select columns function to create a new table.

I'm trying to create a new table based on an extract of an existing one and their is limited information on this function available.

Alternately, if there is another function that provides the same and allows the result to be viewed and edited in the table editor?

Cheers

1 ACCEPTED SOLUTION
Mi2n
Microsoft Employee
Microsoft Employee

You can better use the query editor window and Duplicate/Reference an existing query in order to create a table with data from another table.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @pat_energetics,

 

   if you want to extract some columns from a table to put them in another table you can use the SELECTCOLUMNS() function.

Here the neededarguments for the function:

 

selectColumnsFunction (2).png

 

and an example..

 

selectColumnsFunction (1).png

 

..let me know if it works.

 

#I'M Not An Expert#

I am getting an error message that "The expression refers to multiple columns. Multiple columns can not be converted to a scalar value". Isnt the point of the command to select multiple columns?

Thanks B129,

 

Although that works the suggestion given by mi2n seems more appropriate for ourapplication. By going back to the source query and duplicating what we need upstream, it seems the resulting table is much easier to work with.

Mi2n
Microsoft Employee
Microsoft Employee

You can better use the query editor window and Duplicate/Reference an existing query in order to create a table with data from another table.

Thanks Mi2n

 

The suggestion given seems more appropriate for ourapplication. By going back to the source query and duplicating what we need upstream, it seems the resulting table is much easier to work with.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.