Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hi, All.
I am loading an Excel workbook with several tables in it (see screenshot). is there an elegant way to turn each table (or several tables that I filter) into separate queries for the data model?
I can create a separate query per table, manually - but, since I have multiple tables, I wonder if there is an automated way to do so.
Any help is appreciated!
Thanks!
Hi @datasetleo
I'm afraid there is no auto way like just one step could tramsform it to many tables.
I test with method below:
add an index column in original table from 1,
create a function like the following:
(Sheetindex as number) =>
let
Source = #"2 26 xlsx",
#"Filtered Rows" = Table.SelectRows(Source, each ([Index] = Sheetindex)),
#"Removed Other Columns" = Table.SelectColumns(#"Filtered Rows",{"Data"})
in
#"Removed Other Columns"
Then enter 1 or 2,3,4,5 to the "Parameter", invoke, i can get single query of each sheet data, then expand data and promote column headers.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
25 | |
13 | |
12 | |
11 | |
8 |
User | Count |
---|---|
44 | |
27 | |
19 | |
16 | |
12 |