logo
search
Power Query Problems

How to Convert Financial Statement PDFs to Excel with Power BI

Maira MehtabMaira Mehtab Sep 28, 2026 869 views

Question details

The user needs to extract profit and loss statements, balance sheets, and cash flow statements from PDF files spanning multiple fiscal years into Excel using Power BI.

Product
Power BI / Excel
Device & OS
not provided
Scenario
Importing multi-year financial PDF documents for data transformation and sequential fiscal year sorting.
Observed behavior
The goal is to accurately extract table data from variable PDF layouts, transform it via Power Query, and ensure reliable sorting by fiscal year.
Before you start

Ensure all your financial statement PDFs are saved in a single, accessible folder and check that the table structures within the PDFs are relatively consistent to simplify the extraction process.

Solution 1Recommended

Extract and Transform PDF Data using Power Query Connector

Utilize the built-in PDF connector in Power BI or Excel's Power Query to import, clean, and combine financial tables.

Power Query features a native PDF connector designed to automatically detect tables and pages within PDF documents. This is the most efficient way to bring structured financial data into your data model for year-over-year analysis.

1
Connect to the PDF file

Open Power BI Desktop or Excel, navigate to the 'Data' ribbon (or 'Home' in Power BI), click 'Get Data', select 'File', and choose 'PDF'. Browse to your financial statement file and click 'Open'.

2
Select the tables

In the Navigator window, browse the detected tables (labeled as Table001, etc.) and pages. Check the boxes next to the profit and loss or balance sheet tables you need, then click 'Transform Data'.

3
Clean and format data

Use the Power Query Editor to remove blank rows, promote the first row to headers, and filter out irrelevant text. If you are importing multiple years, use the 'Append Queries' function to stack your tables.

4
Sort by fiscal year

Ensure your fiscal year column is correctly formatted as a Date or Whole Number. Click the drop-down arrow on the fiscal year column header and select 'Sort Ascending' to organize the financial data chronologically.

Complex PDF Layouts: Because PDF layouts can vary significantly between different accounting software outputs, you may require advanced Power Query M code. For highly specialized document structures, posting your specific layout in the Microsoft Fabric Power BI community is recommended.
Easy PDF to Excel Conversion

Convert PDF Financial Statements to Excel Directly with WPS Office

Skip the complex Power Query transformations if you just need the data in a spreadsheet. WPS Office features a powerful, built-in PDF to Excel converter that accurately extracts tables, financial figures, and formatting in a matter of seconds.

  1. 1. Launch WPS Office: Open WPS Office on your computer and navigate to the 'PDF' tab on the main home screen.
  2. 2. Select PDF to Excel: Click on the 'PDF to Excel' tool located in the main toolbar or under the 'Tools' menu.
  3. 3. Add financial documents: Drag and drop your financial statement PDFs into the conversion window, or click 'Add Files' to browse.
  4. 4. Start the conversion: Set your desired output directory and click the 'Start' button. The converted document will automatically open as a structured, editable spreadsheet ready for analysis.
Instantly convert complex PDF financial statements into fully editable Excel spreadsheets.Highly compatible with Microsoft Excel (.xlsx) formats for seamless downstream analysis.Maintains original table structures and layouts, drastically reducing manual data cleaning.Lightweight, fast, and features an intuitive interface familiar to all Office users.
microsoft office alternative - wps office

Frequently Asked Questions

Why is Power BI not recognizing the tables in my financial PDF?

Power BI's PDF connector relies on underlying document tags to identify structured tables. If the PDF was generated as a scanned image or poorly formatted without standard gridlines, the connector may fail. You may need to use OCR software first or manually define boundaries in Power Query.

Can I extract data from multiple PDFs in a folder at once?

Yes, you can use the 'Get Data > From Folder' option to import multiple financial PDFs simultaneously. This approach requires invoking a custom function in Power Query to apply the same extraction logic to each file in the directory.

How do I fix misaligned columns after importing a PDF table?

In the Power Query Editor, you can use features like 'Split Column' (by delimiter, space, or number of characters) and 'Merge Columns' to correct data that shifted into the wrong positions during the initial PDF extraction.