Forum Discussion

ChrisFromOhio's avatar
4 years ago
Solved

Formatting Data Sources from Folder

Hello - relatively new to Power BI, so I am hoping my question is an easy one. I have a folder of CSV data extracts, all in the exact same format, that I want to pull into Power BI. With each CSV extract, the first row is a row of selections I made when pulling the data. The second row is the row I want to use as data headers. In the first row is the date I want pulled and added as a custom column. The data currently looks like the example below:

 

Category=[ALL]Subcategory=[ALL]Brand=[ALL]Viewing=[1/1/21 - 1/1/21]
ItemItem DescriptionSales $Sales U
354Apple10.254
640Banana3.752
887Pear11.325

 

And I would like to transform the data into the following (the bold row being the column headers)

 

ItemItem DescriptionSales $Sales UDate
354Apple10.2541/1/21
640Banana3.7521/1/21
887Pear11.3251/1/21

 

Hoping that making this change would apply to each CSV extract in the folder. Thanks for the help in advance!

6 Replies