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
wifc5013
Frequent Visitor

Power Query Select all Pages in an invoice, regardless of invoice length

Hello,

 

I am wondering if there is any way to have the get data -> PDF read all pages in an invoice, regardless of invoice length. We want to extract data from invoices we receive monthly. We want to name the invoice the same every time and put it in the same directory so PowerQuery can grab it, but the pages of the invoice will vary every time. Is there any way to "select all pages" so that PowerQuery always grabs them all? See below window for reference, and thanks!

 

pdf readpdf read

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. I don't think it does it automatically. Maybe you can try this (but it will only work if the columns are exactly the same. Go to Source step after adding one table page and click the expand button with all columns. It should load all the pages with its columns. 

 

Expand pdfsExpand pdfs

 

If this doesn't work then you should try reading csv files from a folder and the combine them. Check the Power Query code and try replicating it for the pdf.

 

Hope one of this works.


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

Happy to help!

LaDataWeb Blog

View solution in original post

2 REPLIES 2
ibarrau
Super User
Super User

Hi. I don't think it does it automatically. Maybe you can try this (but it will only work if the columns are exactly the same. Go to Source step after adding one table page and click the expand button with all columns. It should load all the pages with its columns. 

 

Expand pdfsExpand pdfs

 

If this doesn't work then you should try reading csv files from a folder and the combine them. Check the Power Query code and try replicating it for the pdf.

 

Hope one of this works.


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

Happy to help!

LaDataWeb Blog

Thanks, editing the source step to expand all tables does work, however my invoices are not all the same format and I can only get them as pdfs, not CSV. But you did answer what I was looking for (select all tables)

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.

Top Solution Authors