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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors