March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I got a table with a time column and severeal component columns (in this example only five components, in reality distinctly more):
What I am trying to do is creating a new table as a new query out of selected columns (as below) but still keep the original query/table.
The only way I achieved this goal was to create a new query for every selected column (in this example time, comp1, comp2) and then append these new queries. In fact, if you only have five components it is pretty easy and fast to manage but in reality I got a whole bunch of columns and new queries I want to extract.
My question is therefore as follows: Is there any way to somehow copy selected columns out of the original table and- by one step- paste them into a new query?
Any help will be highly appreciated,
best regards,
Till
Solved! Go to Solution.
Hi @tilldunk,
You can try to add a blank query source with below formulas.
let Source = Table.SelectColumns('Original Source Name',{'Column Name','Column Name2'}) in Source
Sample:
let Source = Table.SelectColumns(Sheet3,{"Country","Col A"}) in Source
Regards,
Xiaoxin Sheng
Hi @tilldunk,
You can try to add a blank query source with below formulas.
let Source = Table.SelectColumns('Original Source Name',{'Column Name','Column Name2'}) in Source
Sample:
let Source = Table.SelectColumns(Sheet3,{"Country","Col A"}) in Source
Regards,
Xiaoxin Sheng
Hello,
Trying to create a new query from the existing "Master" Query using below formula:
let
Source = Table.SelectColumns('Original Source Name',{'Column Name','Column Name2'})
in
Source
which works fine, however I am looking to see if there is any other formula which would do the same but in a way that it will create the new query with a range of columns , for example Column 20- 67, basically not needing to write all the column names one by one.
Thank you in advance
I am not able to do the same. Getting below error.
Works totally fine, thank you!
Best regards, Till
Hi @tilldunk,
You can duplicate table (then delete what you want) in query mode or use "copy entire table" and then past it in new table.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |