Forum Discussion
Extracting data from same Excel template files
- 7 years ago
Anonymous then what you should do is get data from a folder and not an individual file in your getdata method, apply all those steps once you have done a combine (as long as they all the same, it will copy the first file format)
that way you can apply it to multiple files or if you dont want to combine them, then i suggest creating a source parameter that you can create on one and copy and paste in all, or a function
combine : https://www.youtube.com/watch?v=RAmSdxt863s
functions/parameters: https://www.youtube.com/watch?v=GgwXt4LVmsU
Dear vanessafvg,
Many thanks for your quick reply. The video shows me something which I already did and is only on an example of one file that needs adjustment.
I would like to highlight something that I obviously did not in my original post and that is that I managed to clean one file through Query editor in Power BI exactly as I want it. As well, I was able to Pivot it and changed it from the bottom-up and transferred these items as my column names.
However, I still have 188 files left with this type of sheet. However, each file has 6 sheets so I would have to do same steps as I did for the one I have now for the rest and that makes it hours or even days of work. I think it took me around 15-20 steps in Query editor to clean my data on the sheet I use only on one file...
Anonymous then what you should do is get data from a folder and not an individual file in your getdata method, apply all those steps once you have done a combine (as long as they all the same, it will copy the first file format)
that way you can apply it to multiple files or if you dont want to combine them, then i suggest creating a source parameter that you can create on one and copy and paste in all, or a function
combine : https://www.youtube.com/watch?v=RAmSdxt863s
functions/parameters: https://www.youtube.com/watch?v=GgwXt4LVmsU
- Anonymous7 years agoNot applicable
Dear vanessafvg,
Thank you for your assistance. The function/parameters video got me close, I did had a feeling it is on the good way to solve but in the end, did not work. That was the way I thought it would be possible to solve it but did not work.
I will dig deeper into it and in case I find a feasible solution, share it here.
- Anonymous7 years agoNot applicable
Hi vanessafvg ,
I did work the way out with the video provided (functions/parameters), it was tough but I managed it. However, I now have a tough times figuring out how to use Replace value on a row of a column that contains a date. Is there any generic way to say row 5, column 8 value to be replaced into row 5, column 2? In excel this is very straight-forward, but in Power BI not so.
Thanks for your time and help!
- vanessafvg7 years agoCommunity Champion
Anonymous you probably wouldn't do it the same way, can you filter the value you looking for? ie if column x = a then colum b sort of thing?