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
Is it possible to program something in Power BI so every time a new data sheet is added to the report, the data can be transformed automatically and someone wouldn't have to do it manually every time?
Solved! Go to Solution.
hi @ms166
if data format is the same on each excel sheet you can easy combine them in Power Query like
et
Source = Excel.Workbook(File.Contents("C:\file.xlsx"), null, true),
#"Expanded Data" = Table.ExpandTableColumn(Source, "Data", {"Column1", "Column2", "Column3"}, {"Data.Column1", "Data.Column2", "Data.Column3"})
in
#"Expanded Data"
hi @ms166
if data format is the same on each excel sheet you can easy combine them in Power Query like
et
Source = Excel.Workbook(File.Contents("C:\file.xlsx"), null, true),
#"Expanded Data" = Table.ExpandTableColumn(Source, "Data", {"Column1", "Column2", "Column3"}, {"Data.Column1", "Data.Column2", "Data.Column3"})
in
#"Expanded Data"
Hey @ms166 ,
can you provide more details?
When new data is appearing it will be transformed automatically. So what exactly is the question?
Best regards
Denis
As in, when a new data sheet is inputted, is it possible to automate the removal of rows and columns. This is needed because the Excel version of the data looks different to how it is needed in Power BI.
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 |
---|---|
135 | |
93 | |
86 | |
71 | |
54 |
User | Count |
---|---|
204 | |
142 | |
104 | |
78 | |
68 |