Forum Discussion
Import all PDF and tables within Power Query
- 1 year ago
Hi M_SBS_6 Could you please try these
Connect to SharePoint Folder:
- Go to Get Data > SharePoint Folder, input the SharePoint URL, and load the PDF files.
Extract All Tables:
- Formula :
Table.AddColumn(PreviousStepName, "Extracted Tables", each Table.Combine(PDF.Tables([Content])))
- Replace PreviousStepName with the name of the step before this.
- Formula :
Expand Combined Tables:
- Expand the Extracted Tables column to show all rows from all tables across pages and files.
- Remove unnecessary columns and ensure the headers are consistent.
If this post helped please do give a kudos and accept this as a solution
Thanks In Advance
Hi M_SBS_6 Could you please try these
Connect to SharePoint Folder:
- Go to Get Data > SharePoint Folder, input the SharePoint URL, and load the PDF files.
Extract All Tables:
- Formula :
Table.AddColumn(PreviousStepName, "Extracted Tables", each Table.Combine(PDF.Tables([Content])))
- Replace PreviousStepName with the name of the step before this.
- Formula :
Expand Combined Tables:
- Expand the Extracted Tables column to show all rows from all tables across pages and files.
- Remove unnecessary columns and ensure the headers are consistent.
If this post helped please do give a kudos and accept this as a solution
Thanks In Advance
Thanks for your suggestion. I have followed the steps but my new column when I expand only shows the column headers (content, Name, extension etc) of the previous step not the headers within the PDF.
onlyincludepdf Is my last step in the applied steps as I had to filter out excel files.
=table.addcolumn(onlyincludepdf, "Extracted Tables", each table.combine(pff.tables(content)))
Have I done something wrong here?
- Akash_Varuna1 year agoSuper User
Hi M_SBS_6 You have written here pff.table(contents) its PDF.Tables(content)
- M_SBS_61 year agoHelper V
Apologies, that was my typo on here. It's as expected within Power BI