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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
Employee
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
Employee
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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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