We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I have lots of different spreadsheets that are all the same format, but with different data in them. At the moment I have to upload each speadsheet individualy, carry out the transformations of the data in query editor and then appended them all together. Is there a way this can be done automatically?
For example is there a way with using Get Data from Folders? Can Power BI select all the specific tables in the spreadsheets and then carry out a pre deturmined set of transformations on the data? And then perhaps even append them all together?
(All the spreadsheets have a lot of tables in that I am not interested in, but I only upload the same 3 tables from each spreadsheet, which are all in the same format)
The transformations I carry out on each table are:
let
Source = Excel.CurrentWorkbook(){[Name="Table9"]}[Content]
,
#"Transposed Table" = Table.Transpose(Source),
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table"),
#"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Promoted Headers", {"Date", "Status"}, "Attribute", "Value"),
#"Changed Type" = Table.TransformColumnTypes(#"Unpivoted Columns",{{"Date", type date}})
in
#"Changed Type"
So basically, transposed table, promote first row as headers, unpivot a set amount of columns, change type of one of the rows to date.
Thanks
If you have, or can create, a table of the workbooks you want (with the same Table in each) then you can process them all with your transformations set up as a function - e.g. see https://www.powerpivotpro.com/2015/07/consolidated-worksheets-with-power-query/
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |