Stop 02 · Connecting to DataTopics · 2/8

Connecting to Excel and CSV Files

Part of the Power BI Roadmap

In short

Most real Power BI work in Indian offices starts with an Excel file someone emails every Monday. Loading it the right way saves hours of broken refreshes later.

Get Data lets you load sheets, tables or CSV files. Formatted Excel tables load more reliably than loose ranges, and CSV files need their delimiter and encoding checked.

The jaadu carefully loads neatly taped and labelled cardboard boxes into a small tempo while a messy heap of loose items sits on the pavement.

Think of it like this

Labelled boxes vs loose items

Moving house, labelled sealed boxes arrive safely. Loose items thrown in the back of a tempo get mixed up and lost. An Excel table (Ctrl+T) is a labelled box with a fixed name and edges. A loose cell range is the pile in the tempo.

Watch it happen

Excel table vs sheet range

Formatted table

  • Has a name like tblSales
  • Grows automatically with new rows
  • Headers are clear
  • Survives extra notes added elsewhere on the sheet

Loose sheet

  • Picks up every used cell
  • Notes and totals sneak in as rows
  • Blank columns appear as Column7
  • Breaks when someone adds a title row

Ask whoever owns the file to keep data in a formatted Excel table, and connect to that table rather than the sheet.

The big ideas

What you need to know

Prefer named tables

In the Navigator, tables show with a table icon and sheets with a sheet icon. Pick the table.

CSV is plain text

Check the delimiter (comma, semicolon or tab) and the encoding, especially for names in Hindi or other scripts.

Watch date formats

Indian files often use DD/MM/YYYY. Use Change Type with Locale and pick English (India) so dates read correctly.

File paths matter

A path like C:\Users\Riya\Downloads breaks when someone else refreshes. Keep files in a shared, stable location.

See it in code

Walk through the code

m
1let2    Source = Excel.Workbook(3        File.Contents("D:\Reports\sales_2026.xlsx"),4        null,5        true6    ),7    Sales = Source{[Item = "tblSales", Kind = "Table"]}[Data],8    Typed = Table.TransformColumnTypes(9        Sales,10        {{"OrderDate", type date}, {"Amount", Currency.Type}},11        "en-IN"12    )13in14    Typed

1/3Excel.Workbook opens the file. The third argument true lets Power Query use header rows.

Connect to a named Excel table and read its dates using the English (India) locale.

Save yourself the pain

Common mistakes

Oops

Connecting to Sheet1 when the data has a title and notes above it.

Do this instead

Turn the data into a formatted table in Excel and connect to the table instead.

Oops

Letting Power Query guess dates in a DD/MM file on a PC set to US format.

Do this instead

Use Change Type, Using Locale, and choose Date with English (India).

Your mission

Load the same data two ways

~20 min

Quick check

Your CSV shows 05/03/2026 and Power BI reads it as 3 May. What should you do?

Go deeper

  1. 1Load an Excel workbook with two sheets and pick the right tables.
  2. 2Convert loose Excel ranges into tables before connecting.
  3. 3Check that headers and data types were detected correctly.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge