Forum Discussion

DatataD's avatar
DatataD
New Member
8 years ago
Solved

How to run the same query on multiple tables and append (automatically)

Hi all,

 

I've got around 200 csv files which need to be stitched together into the same data table and loaded to Power BI / Power Pivot.

 

The catch is I can't just load the whole folder in because I need to unpivot each table individually because they have dates running across the top in a row and I need them in the same column (different dates covering around three years) so I can't just filter out all the other date headers.

 

At the moment I'm faced with duplicating my query 200 times, changing the source to each individual file and then appending them.

 

Surely there is a better way?

 

Any help appreciated.