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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

[HELP] Combine excel files after cleaning.

Hi Guys, 

 

I need some ideas/help.

 

I have a one drive business folder which the user is uploading files monthly to it and all the files have the same structure or at least we have asked for.

 

I already did in Power query the upload process to be automatically and the files are being loaded as Union which is good. but I need to do this little clean for the files.

 

Is there anyway to do the cleanse for one file and then automate for the next ones? the user will put a new file in this folder when they have a new project.

 

One sample of the file below

 

basically I need to clean the empty rows and unpivot.

sample.png

 

Any idea/help would be very appreciate.

 

Thanks all

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , if you have configured it has a folder, steps should repeat on new files.

https://insightsoftware.com/blog/power-bi-load-data-from-folder/

Anonymous
Not applicable

Hi, 

 

Thanks your replying.

 

I'm having issue after I transpose the data, when I do the merge is not working anymore I think because it looses the Source.Name column,

 

however the cleaning works for all the files that I upload after if I don't use tranpose.

 

Any help?

 

Hi @Anonymous ,

Did you get any error message when you merged these files after transposed? If yes, could you please provide the related screen shot with error message and the codes in Power Query Advanced Editor? Thank you.

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-yiruan-msft Hi

 

Thanks for your message,

 

Actually there's no error, it just doens't bring the files below, if I don't clean at all and use only transpose the files start coming in a new columns instead on the bottom rows, which does not work for me...

Hi @Anonymous ,

Whether you clean all of the files in that OneDrive folder and they still keep same structures after cleaned? Which method you are using to combine these files? Merge or Append? You can refer the following documentations about the details of combine queries in Power Query. 

Append vs. Merge in Power BI and Power Query

Merge Vs. Append In Power BI In Power Query Editor 

In addition,Could you please provide some screen shots to help us get a good understanding for your problem if it is convenient? Thanks you.

Best Regards

Rena 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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