Need to import data into Power BI from a PDF, scan, or photographed table? Power BI reads CSV and Excel files natively, but it can't read a PDF, a scan, or a photo directly. Datafromfile is the step that turns those into the CSV or Excel file Power BI actually wants.
The actual steps
- Extract your source document with Datafromfile, a report, invoice batch, or table exports to a clean XLSX or CSV.
- In Power BI (Desktop or the online service), select Get Data, then choose Excel workbook or Text/CSV depending on your export format.
- For an Excel import, Power BI requires the data live in a table or a data model, Datafromfile's export already comes as a flat table, so this works without extra formatting.
- For a CSV import via the Power BI service, files up to 1 GB are supported directly from your computer, OneDrive, or SharePoint.
Keeping it repeatable
If you're extracting the same kind of report regularly, exporting to a consistent file location (like a synced OneDrive folder) lets Power BI's scheduled refresh pick up each new extraction automatically, rather than re-importing by hand every time.
Getting column types right before building visuals
Power BI infers each column's data type from the imported file, and a wrong guess here is the most common reason a visual shows unexpected results. Two checks are worth doing right after import, in the Power Query editor (Transform Data), before building any report on top of the data:
- Numbers imported as text: a currency symbol or thousands separator in the source document carries through as text, which breaks SUM and other aggregations silently rather than erroring. Change Type > Whole Number/Decimal Number fixes this once the underlying values are confirmed numeric.
- Dates imported as text: the same applies to date columns from documents with an ambiguous format (a 01/02/2026 that could be January 2nd or February 1st). Change Type > Date, then spot-check a handful of rows against the original document to confirm Power BI picked the correct regional interpretation.
Building a repeatable model, not a one-off report
For a document type you extract regularly, a small amount of upfront work in Power Query, renaming columns to consistent names, setting types once, pays off every time you refresh with a new extraction. Applying these steps as a saved query means each new CSV or XLSX from Datafromfile only needs to be pointed at the same import, not manually reformatted again.
FAQ
Does Power BI support CSV files directly, or does it need Excel? Both are supported natively, Text/CSV and Excel workbook are separate, built-in Get Data connectors.
What's the file size limit for CSV import in the Power BI service? 1 GB, which covers virtually any real extracted document.
Why do my imported numbers show as text in Power BI? Usually because the source value still carried a currency symbol or thousands separator, Power Query imports a column exactly as it reads it and needs an explicit Change Type step to reinterpret it as a number.
Handling a multi-table document
A single PDF report often contains more than one table, a summary page followed by a detailed breakdown, for example. Datafromfile extracts what's on each page, so a multi-table document may export as multiple sheets in one XLSX file rather than one flat table. Power BI's Navigator screen (shown after Get Data > Excel workbook) lets you select one, several, or all sheets to load, each becomes its own table in the data model, which you can then relate to the others using Power BI's Model view if the tables share a common column like an invoice number or date.
Try it
Extract your document with Datafromfile, export to CSV or Excel, then bring it into Power BI with Get Data.