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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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