How to Connect Excel and CSV to Power BI Desktop
Connect Excel or CSV in Power BI Desktop with Get data, preview the table in Navigator or Power Query, fix headers and types, then Load (or Close & Apply) so the data sits in your model.
Friends! Most first jobs do not start with a fancy warehouse — they start with an Excel export from finance or a CSV from an ops tool. If you can connect those cleanly, you are already useful. Today: why file sources matter, how the clicks work, and a tiny FreshBasket orders example.
मित्रांनो! Most first jobs do not start with a fancy warehouse — they start with an Excel export from finance or a CSV from an ops tool. If you can connect those cleanly, you are already useful. Today: why file sources matter, how the clicks work, and a tiny FreshBasket orders example.
मित्रों! Most first jobs do not start with a fancy warehouse — they start with an Excel export from finance or a CSV from an ops tool. If you can connect those cleanly, you are already useful. Today: why file sources matter, how the clicks work, and a tiny FreshBasket orders example.
Quick answer
Vertical connect checklist:
- Home → Get data.
- Choose Excel workbook or Text/CSV.
- Select the file you own.
- In Navigator (Excel) tick sheets/tables; for CSV confirm delimiter.
- Prefer Transform data if headers or types look wrong.
- Close & Apply / Load — then build visuals on the clean table.
File → Get data → Preview → (optional) Power Query fixes → Load
What do I need before this guide?
- Power BI Desktop installed (install guide).
- An
.xlsxor.csvfile on your machine (create a tiny one if needed). - Course pointer: Get data window.
Before and after (look at the tables first)
Before
आधी (Before)
पहले (Before)
After
नंतर (After)
बाद में (After)
Connect Excel/CSV, clean in Power Query if needed, then Close & Apply. Here a Year = 2025 step leaves 140.
Why start with Excel and CSV?
Because they teach the full connector habit without a database password.
Why you care:
- Real offices still email Excel every week.
- Ops tools often dump CSV.
- You learn Get data, preview, Load vs Transform, and data types early — the silent killer of wrong charts.
Once this muscle is built, SQL and Folders feel like the same movie with a new scene.
Tiny example we will aim for:
- Mumbai Amount 100, Pune Amount 40.
- After Load, a Card shows 140.
- A City slicer set to Mumbai shows 100.
Excel brings sheets and named tables; CSV is one flat text table — always check delimiter and data types.
Excel आणतो sheets and named tables; CSV एक flat text table — always check delimiter and data types.
मित्रों — Excel brings sheets and named tables; CSV is one flat text table — always check delimiter and data types.
Excel workbook — step by step
Excel path: Home → Get data → Excel workbook → pick sheets or tables in Navigator → Load or Transform data.
मित्रांनो — Excel path: Home → Get data → Excel workbook → pick sheets or tables in Navigator → Load or Transform data.
मित्रों — Excel path: Home → Get data → Excel workbook → pick sheets or tables in Navigator → Load or Transform data.
What this is: pulling sheets or named tables from an .xlsx file into Power BI.
Why you care: Excel is the most common first source in Indian offices and training labs.
Vertical steps:
- Open Desktop → blank report (or your practice
.pbix). - Home → Get data → Excel workbook.
- Browse to the file → Open.
- Navigator lists sheets and tables.
- Tick the object that holds the rectangular data (prefer a named Table).
- Preview on the right — check column names.
- Click Transform Data if the first rows are titles/notes; otherwise Load.
What you see on screen:
- A Navigator window with ticks on the left and a preview grid on the right.
- After Load, Fields shows your table name.
Sheet vs Excel Table (why it matters)
- A sheet may include logos, titles and blank rows above the real grid.
- A named Excel Table is a structured block Power BI loves.
- If you control the workbook, Format as Table in Excel first — future you will thank you.
Tiny Excel example (FreshBasket, fictional)
File freshbasket_orders.xlsx:
- Columns: OrderDate, City, Category, Amount.
- Two data rows: Mumbai / Snacks / 100, Pune / Dairy / 40.
- Named table
Orders. - In Navigator, tick
Ordersonly — skip the “Cover” sheet with the title art.
What happens after Load:
- Data view shows two rows.
- Card on Amount shows 140.
- Column chart by City shows Mumbai 100 and Pune 40.
CSV files — step by step
CSV path: file → Power Query (delimiter and types) → Close & Apply so the clean table lands in the model.
मित्रांनो — CSV path: file → Power Query (delimiter and types) → Close & Apply so the clean table lands in the model.
मित्रों — CSV path: file → Power Query (delimiter and types) → Close & Apply so the clean table lands in the model.
What this is: importing a plain text table where commas (or another delimiter) separate columns.
Why you care: many tools export CSV, not Excel.
Vertical steps:
- Home → Get data → Text/CSV.
- Select the
.csvfile. - In the dialog, inspect:
- Delimiter (comma, semicolon, tab, …) — the character that splits columns.
- Encoding (UTF-8 is common; try another if Marathi/Hindi text looks broken).
- Data Type Detection (you can be strict and set types yourself in Power Query).
- Click Transform Data for real work, or Load for a perfect file.
- In Power Query: promote headers if needed, set types, remove junk columns.
- Home → Close & Apply.
What you see on screen:
- A preview of columns split correctly (City in its own column, Amount in its own column).
- If wrong: one sad column with commas still inside the text.
When CSV becomes one sad column
- The file used
;but Power BI expected,(or the reverse). - Fix delimiter in the CSV dialog, or Split Column by delimiter in Power Query.
- Re-check the preview before Close & Apply.
Tiny CSV sample:
OrderDate,City,Category,Amount
2025-09-01,Mumbai,Snacks,100
2025-09-01,Pune,Dairy,40
After a clean Load, Card = 140.
Load vs Transform — the decision
Use this vertical rule:
- Preview looks perfect (headers + types) → Load.
- Anything smells wrong (merged title row, wrong types, extra columns) → Transform Data.
- When unsure → Transform. A two-minute fix beats a broken model all week.
What Transform is: opening Power Query (the cleaning window) before the table enters the model.
Why you care: wrong types make “100” act like text, so totals fail.
Power Query details expand in Power Query vs DAX and the course Power Query chapter.
After the data lands
Vertical steps:
- Open Data view — spot-check rows (Mumbai 100, Pune 40).
- Open Model view — one table is fine for day one.
- Build a Card on Amount and a slicer on City.
- Click Mumbai on the slicer — Card should show 100.
- Save the
.pbix. - If the Excel path moves later: File → Options and settings → Data source settings → change source.
What you see on screen: Card 140 with no slicer; Card 100 with Mumbai selected.
Common errors and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| Navigator empty | Wrong file / protected file | Unlock, re-export, retry |
| Headers named Column1 | Header row not promoted | Transform → Use first row as headers |
| Numbers won’t sum | Text type | Change type to Decimal/Whole Number |
| Date sorts as text | Date stored as text | Set Date type; fix locale if needed |
| Refresh fails next week | File moved/renamed | Data source settings → new path |
| Duplicate tables | Loaded sheet and table | Remove the unused query |
Ravindra Bagale's Tip
Many students Load immediately, then fight visuals for an hour. Spend three minutes in Power Query on headers and types first. Charts become honest. Remember — clean source, calm report.
Ravindra Bagale's Tip – मराठी
बरेच students लगेच Load करतात, मग एक तास visuals शी झगडतात. आधी Power Query मध्ये headers आणि types वर तीन मिनिटे द्या. Charts प्रामाणिक होतात. लक्षात ठेवा — clean source, calm report.
Ravindra Bagale's Tip – हिंदी
बहुत students तुरंत Load करते हैं, फिर एक घंटा visuals से लड़ते हैं. पहले Power Query में headers और types पर तीन मिनट दो. Charts ईमानदार हो जाते हैं. याद रखो — clean source, calm report.
Lab
Create practice_sales.csv with City, Product, Amount (include Mumbai 100 and Pune 40, plus eight more rows). Then:
- Connect with Text/CSV.
- Transform: correct types; rename Amount if needed.
- Close & Apply.
- Card + City slicer.
- Save
csv-connect-lab.pbix.
Learn it properly
Course lessons:
- The Get data window
- Common connectors
- Data source settings and credentials
- What is Power Query?
- Applied steps
Related guides: Install + first report · Power Query vs DAX
Worked Excel story (fictional FreshBasket)
File layout:
- Sheet
Cover— logo and “Confidential training sample”. - Sheet
Orders— messy title in row 1, headers in row 2. - Named table
OrdersTableon a clean rectangular range (best) with Mumbai 100 and Pune 40.
What you do:
- Get data → Excel → tick
OrdersTableonly. - If you must use the messy sheet: Transform → Remove top rows → Use first row as headers → set types.
- Close & Apply.
- Never load Cover.
What you see: Fields shows OrdersTable; Card shows 140.
Worked CSV story
orders_2025-09.csv:
OrderDate,City,Category,Amount
2025-09-01,Mumbai,Snacks,100
2025-09-01,Pune,Dairy,40
- Text/CSV → check comma delimiter.
- Transform → Date type on OrderDate, Decimal on Amount.
- Close & Apply.
- Card + City slicer proof (Mumbai → 100).
Folder of CSVs (preview only)
When monthly files share the same shape, the course Folder connector combines them. Master one file first; Folder is the encore.
Got it? Excel and CSV are Get data → preview → fix types → Load. Prefer named Excel Tables. Next we separate measures from calculated columns. Let’s continue.
समजलं का? Excel and CSV are Get data → preview → fix types → Load. Prefer named Excel Tables. Next we separate measures from calculated columns. आता पुढे जाऊया.
समझ में आया? Excel and CSV are Get data → preview → fix types → Load. Prefer named Excel Tables. Next we separate measures from calculated columns. आगे बढ़ते हैं.
Frequently asked questions
Excel sheet vs table?
A sheet is the whole grid; a named Excel Table is a structured range — usually cleaner for Power BI.
CSV opens with one column — why?
Wrong delimiter (comma vs semicolon vs tab). Fix it in the Text/CSV dialog or Power Query Split Column.
Should I Transform every time?
Yes when headers, types or junk rows need fixing. Clean once in Power Query so every refresh stays clean.
Can I combine many CSV files?
Yes via Get data → Folder (covered in the course). Start with one file first.
Credentials errors?
File connectors rarely need accounts; if a path moved, use Data source settings to mend the file path.
Related course lessons?
Getting data chapter and Power Query essentials — linked at the end of this guide.