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
gtamir
Post Patron
Post Patron

Get data from folder and append

Hi, I am testing get data from folder and append. I was told that some automation can be performed here.

The goal is to append new file from excel every month to an exising file.

 

I do get data from folder > edit > filter what files I want (choose two files) > combine files (the two arrows on the top right).

Add columns and delete others, delete source.name,  change the name to PSSales > apply& load.

 

Now I get data again the same way and I have the file as append2.

What to do to append it to PSSales Automatically! ?

If not, what join to use?

 

Thanks Giora

ScreenHunter_016.jpg

2 ACCEPTED SOLUTIONS
v-yulgu-msft
Employee
Employee

Hi @gtamir,

 

Just need to make sure all worksheets you want to combine share the same structure, then, place the new generated Excel file into the same folder, refresh the existing query PSSales in Power BI desktop, the new data will be appended automatically.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

I've done the same test and it is working fine without any issues.... Two files in the folder as below..

 

image.png

 

Created a simple table viz. and the output is as belo...

 

image.png

 

Now added another file in the source folder 

 

image.png

 

Now refresh the data for the table

 

image.png

 

The table viz. will automatically reflect the new data...

 

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

10 REPLIES 10
v-yulgu-msft
Employee
Employee

Hi @gtamir,

 

Just need to make sure all worksheets you want to combine share the same structure, then, place the new generated Excel file into the same folder, refresh the existing query PSSales in Power BI desktop, the new data will be appended automatically.

 

Best regards,

Yuliana Gu

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

@v-yulgu-msft

 

I made another test without changing anything in the appended files (No ETL), just try to append the 3ed file.

I press Refresh Preview but the 3ed file is not appended.

 

Giora

I've done the same test and it is working fine without any issues.... Two files in the folder as below..

 

image.png

 

Created a simple table viz. and the output is as belo...

 

image.png

 

Now added another file in the source folder 

 

image.png

 

Now refresh the data for the table

 

image.png

 

The table viz. will automatically reflect the new data...

 

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




@PattemManohar

 

I see that you refresh from the table and not from the query.

Any way it doesn't work.

 

 

@PattemManohar @v-yulgu-msft

 

OK I found the problem.

I had 3 files in the folder. I filtered the load to 2 first one in order to load the 3ed one later by the refresh.

This filter remains of course and never loaded the 3ed file.

I'll make a few more tests and update.

 

Giora

@PattemManohar @v-yulgu-msft

 

Everythig works perfect.

 

 

 

Giora

@gtamir That’s Cool Smiley Happy





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




@v-yulgu-msft

It doesn't happen.

The 3ed file has differnt name as every month I get another file. The structure is the same.

 

There is something I miss here. How PBI distinguish between the files? there are other files in the folder appart from the one I want to append.

 

Giora

venug20
Resolver I
Resolver I

@gtamir

 

Just have a look this scenario.... you may get some knowledge on your issue...

 

I have cereate two files and kept in one folder. uisng this folder i want to combine those two file. i follow below steps achive my goal.

 

 --- Files should be having same column name

--- and file shold be ".CSV" extention

 

Combine-Files-6.jpgCombine-Files-1.jpgCombine-Files-2.jpgCombine-Files-3.jpgCombine-Files-4.jpgCombine-Files-8.jpg

 

1. go to folder connection. 

2. choose your folder.

3. then click on "edit"

4. Remove other columns, except first column.

5. click on combine files.

6. automatically show data like above screen.

 

Combine-Files-7.jpg

 

9. create one more file in same folder.

10. in query editor click button "Refreh", automatically add data.

 

If it proper solution for your query, accept as answer. It may help to others...

Thanks

After step 6 (by the way I dont see steps 7 & 8), I want to do some ETL. Let's say add a calculated column and remove another and change header names.

Will this be applied after adding a file to the folder and REFRESH the Query?

 

Giora

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.