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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
goodie2vivs
New Member

Update Existing Table with Power Query

Hello... After watching countless YouTube videos, I'm still not able to find a solution to my tedious data entry problem. 

 

I'm trying to figure out a way to update an existing table in an Excel file with data from PDF reports using Power Query. (I'm not sure if I'm describing that correctly.) Basically, I have a daily sales file that needs to be updated every day with data from PDF reports automatically emailed to me. Only certain data on the PDF is needed to be entered into the Excel file. The Excel file has a breakdown of daily sales by: Gross Sales, Sales Tax, Customer Credit Card Payments, Customer Cash Payments, Total Discounts, etc. The daily report is automatically generated and emailed over in PDF. Not only do these PDFs contain information needed to update the daily sales file, but it also contains other irrelevant data that does not need to go into the Excel file. I'm trying to automate this process since there are 20+ branches whose sales need to be recorded daily. 

 

Hopefully such a solution exists that would help save some serious time (and reduce human errors!)!! Thanks in advance!  

1 ACCEPTED SOLUTION

Hi @goodie2vivs ,

 

Presuming you have Office 365 or a recent version of Excel:

 

If your PDF always has the same name and is overwritten each day:

1a) Data tab > Get Data > From File > From PDF

2a) Select the PDF that you want

3a) Perform transformations as required in Power Query

 

If you put all your daily PDFs with different names into a folder:

1b) Data tab > Get Data > From File > From Folder

2b) Select your folder

3b) Filter file list in Power Query to identify the files you want to use (you can filter on most recently created, file type etc.), then perform transformations as required

 

4) Once transformations are done, go to 'Close & Load' > 'Close & Load to...' and select a suitable place in your workbook to apply this query to a table.

5) Use this new table as a lookup source within your daily sales file to grab the new data that you need to report.

 

Pete

 

 @artemus Your answer is, I believe, incorrect in the context of what OP is asking. As you have "Microsoft Employee" next to your name it means people will assume that yours is the final word on the subject, and why I felt the need to highlight this error.



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
artemus
Microsoft Employee
Microsoft Employee

The only intended way to update a dataset using power query is by using Power Bi with the PowerApps visual.

Hi @goodie2vivs ,

 

Presuming you have Office 365 or a recent version of Excel:

 

If your PDF always has the same name and is overwritten each day:

1a) Data tab > Get Data > From File > From PDF

2a) Select the PDF that you want

3a) Perform transformations as required in Power Query

 

If you put all your daily PDFs with different names into a folder:

1b) Data tab > Get Data > From File > From Folder

2b) Select your folder

3b) Filter file list in Power Query to identify the files you want to use (you can filter on most recently created, file type etc.), then perform transformations as required

 

4) Once transformations are done, go to 'Close & Load' > 'Close & Load to...' and select a suitable place in your workbook to apply this query to a table.

5) Use this new table as a lookup source within your daily sales file to grab the new data that you need to report.

 

Pete

 

 @artemus Your answer is, I believe, incorrect in the context of what OP is asking. As you have "Microsoft Employee" next to your name it means people will assume that yours is the final word on the subject, and why I felt the need to highlight this error.



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




AlB
Community Champion
Community Champion

Hi @goodie2vivs 

Share some sample data we can work on.  One of these PDFs plus a pbix with the PQ operations you are currently doing, plus the expected result.

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors