Skip to the workspace
Pebellslearn by building
Getting Data In  ›  Lesson

Connecting to Files

Files 12 minChoose the file connector that matches the file — a Folder connector for many files with the same columns — and store files where the Service can reach them for refresh.

power bi / Connecting to Files

Explore each scene at your own pace.

01 · The rule

The rule

Connecting to Files

Leaf & Cup's tills have no database behind them. At the end of each month, each branch exports its sales as a CSV file and saves it to a shared SharePoint folder: pune-2026-01.csv, mumbai-2026-01.csv, and so on. Arjun's first real job is to turn those files into one table in Power BI — in a way that still works next month without him touching it.

The rule

Pick the connector that matches the file, and keep the path reachable for refresh.

Everything starts at Home → Get data. The file connectors you will meet most:

Connector Reads Tip
Excel workbook Sheets, formatted tables, named ranges Prefer a formatted table: it has one header row and grows as rows are added
Text/CSV One delimited text file Check the delimiter and the file encoding in the preview
JSON, XML Structured text Arrives as nested records that you expand into columns
Parquet Column-based files from data platforms Compact and fast to read
PDF Tables printed inside a PDF Fine for one-off extracts
Folder, SharePoint folder Every file in a folder Combines files with the same columns into one table

After you choose a file, a preview appears with two buttons. Load sends the data straight into the model. Transform Data opens Power Query first, so you can clean before loading. Cleaning first is almost always the better habit.

Where the file lives matters the moment you publish. A file on the C: drive of Arjun's laptop refreshes fine in Desktop, but the Service in the cloud cannot see his laptop. To refresh it from the Service he would need an on-premises data gateway running on a machine that can reach the file. Files stored in SharePoint or OneDrive for work or school can be refreshed from the cloud with no gateway.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.