Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Get data from folder, remove rows from each file in folder

I'm trying to do something with PowerBI that I'm fairly certain is possible, but I'm getting an Expression.Error, so I think I'm doing something wrong.

 

I'm getting data from a folder.  It can contain an arbitrary number of files (but typically 40-100). All of the files in the folder are .xlsx files with identical formatting, though the data they contain is different.  For each file, I want to remove the first row (it's junk) and use the second row as headers.  Then I want to combine all of the data into one dataset on which I can do my normal PowerBI stuff.

 

I've been trying Get Data -> Folder -> Remove Top Rows (1) -> Use First Row as Headers.  But, as mentioned above, this just gets me an error message.  What am I doing wrong?  What should I do?

 

Thanks!

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

 

Please recheck you steps:

1.Get data from folder

2.Select “Transform Sample File”  and select   ‘Use First Row as Headers’   

2.png

If success , the transform Sample File will be as shown below:

3.png

3.Maybe there will be an error like this:

4.png

Please  delete the steps of “change type”

5.png

4.The final queries will be as shown below  and please click “Close &Apply”  

6.png

Here’s a sample I made:

Url: https://wicren-my.sharepoint.com/:f:/g/personal/michael_wicren_onmicrosoft_com/EsEeylz5jFtPv5n8uzVa2ikBi7MtEB7P_e5hbmF3V0VD3w?e=8qE6ba

 

If it doesn't meet your requirement, kindly share your sample data and expected result if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

 

Please recheck you steps:

1.Get data from folder

2.Select “Transform Sample File”  and select   ‘Use First Row as Headers’   

2.png

If success , the transform Sample File will be as shown below:

3.png

3.Maybe there will be an error like this:

4.png

Please  delete the steps of “change type”

5.png

4.The final queries will be as shown below  and please click “Close &Apply”  

6.png

Here’s a sample I made:

Url: https://wicren-my.sharepoint.com/:f:/g/personal/michael_wicren_onmicrosoft_com/EsEeylz5jFtPv5n8uzVa2ikBi7MtEB7P_e5hbmF3V0VD3w?e=8qE6ba

 

If it doesn't meet your requirement, kindly share your sample data and expected result if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.