Pebellslearn by building
0%
RoadmapsMatrixCoursesSandboxSign in
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.

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.

The shortcut

Ask two questions. One file or many? One file: the Excel or Text/CSV connector. Many files with the same columns: a Folder connector. Where does it live? On a personal drive: plan for a gateway. In SharePoint or OneDrive: the cloud can refresh it.

Loading every monthly exportStep 1 of 4
  1. Spot the pattern

    24 CSV files, one per branch per month, all with the same six columns.

The trap is a stray file. A CSV with an extra column, a renamed header or a different layout dropped into the same folder can break the combine or push values into the wrong columns. Keep one layout per folder, and filter the file list by name or extension, so only the files you expect are combined.

Drills

Answer fast — trust the rule.

quick drill

Leaf & Cup has 24 monthly CSV files with identical columns. Which connector brings them in as one table?

quick drill

In an Excel workbook, why choose a formatted table rather than the whole sheet?

quick drill

On the preview screen, what does Transform Data do?

quick drill

The report reads C:\Reports\sales.xlsx on Arjun's laptop. After publishing, scheduled refresh in the Service fails. What fixes it?

Remember

  • Pick the connector that matches the file, and keep the path reachable for refresh.
  • Ask: one file or many, and where does it live?
  • Trap: a file with a different layout in a combined folder; filter the file list.

Practice — level up

0/1 solved

Write your answer, then compare it with a rubric and a model answer.

ExplainMonthly exports without monthly work

Each Leaf & Cup branch saves a monthly CSV export with the same columns. Explain how Arjun should bring all of them into Power BI so that next month's files appear without him changing the report, and where the files should be stored.