Ravindra BagaleCourses & study guides Track your progress

Excel → Power BI Bridge

Bridge 2. Excel Tables → Power BI tables

Friends,

Friends, today Excel Tables meet Power BI tables. Name them. Type them. Get Data is the door — not a mystery.

About this data: Practice names (Priya, Amit, Emma, Omar, Sofia, Ananya, Chen Wei, Neha), cities and ₹ $ £ € amounts are fictional. Safe for class. Workbook includes an About this data sheet.

At deploy, files go to s3://ravindrabagale-cards/excel/bridge/ .

What you will learn

  • Turn a range into a named Excel Table.
  • Load with Get Data and set types.
  • Keep codes as Text and amounts as Decimal.
  • Avoid loading totals rows into the model.

A short story

Priya’s Pune sales still live in a plain range. Desktop needs a named table, typed Amount, and no total row hiding in the data.

Ravindra Bagale’s Tip

Name tables and columns before Desktop. Pretty titles can wait for the visual.

1. Excel Table (Ctrl+T) habit

Friends,

Friends, name the table before you export. Orphans named Table1 confuse the model.

Why: Structured refs and auto-expand keep Excel clean.

What: An Excel Table with a name like Sales.

How:

  1. Select data → Ctrl+T → my table has headers.
  2. Name it on Table Design (e.g. Sales).
  3. Use SUM on the Amount column (structured ref in Excel).
  4. Keep one header row; no merged cells.
ExcelPower BI / DAXResultMeaning
Excel
Ctrl+T → name Sales
Power BI
Get Data → pick Sales table
Sales Priya’s Pune pack loads as a typed table.

2. Get Data into Power BI

Friends,

Transform before Apply when dates or amounts look like text.

Why: Desktop does not live inside your xlsx — you load from it.

What: Home → Get Data → Excel workbook.

How:

  1. Home → Get Data → Excel.
  2. Pick the file. Tick the table or sheet.
  3. Transform Data if types look wrong.
  4. Close & Apply to load into the model.
ExcelPower BI / DAXResultMeaning
Excel
Open the .xlsx and work inside
Power BI
Get Data → Transform → Close & Apply
Loaded Emma’s Manchester shop table appears in Data view.

3. Column types matter more

Friends,

ProductID as Whole Number can drop leading zeros. Prefer Text for codes.

Why: Wrong types break relationships and visuals.

What: Decimal, Date, Text — set them once.

How:

  1. In Power Query, check each column type icon.
  2. Amount → Decimal Number; OrderDate → Date.
  3. City → Text; ProductID → Text (even if digits).
  4. Apply — Model view now trusts the types.
ExcelPower BI / DAXResultMeaning
Excel
Format Cells (often cosmetic)
Power BI / PQ
Data Type on the column
Typed Omar’s amounts sum correctly as Decimal.

4. Table and column names

Friends,

Pretty labels on visuals. Clean names in the model.

Why: Spaces and weird names hurt DAX later.

What: Clean names: Sales[Amount] not Sales[Amt ₹].

How:

  1. Rename columns in Power Query.
  2. Avoid currency symbols in column names.
  3. Keep one language for column names in the model.
  4. Pretty labels belong on visuals.
ExcelPower BI / DAXResultMeaning
Excel
Header Amt ₹ works on sheets
Power BI
Rename to Amount
Amount Chen Wei’s pack stays easy to write in DAX.

5. Load to model vs sheet only

Friends,

Staging queries: uncheck Enable load so they clean but do not clutter the model.

Why: Excel often dumps to a sheet. Power BI loads to the model by default.

What: Close & Apply puts tables in Model view.

How:

  1. Prefer load to model for reporting.
  2. Disable load only for staging queries.
  3. Check Model view: tables appear as boxes.
  4. Relate keys in a later chapter.
ExcelPower BI / DAXResultMeaning
Excel
Close & Load to sheet
Power BI
Close & Apply → model
In model Ananya’s ticket table ready for relationships.

6. Same file, weekly refresh

Friends,

Stable paths beat heroic broken-source hunts every Monday.

Why: Point once; refresh later.

What: Keep the workbook path stable for class demos.

How:

  1. Save practice files in a fixed folder.
  2. Data source settings if the path moves.
  3. Home → Refresh after the CSV updates.
  4. Service schedule comes later.
ExcelPower BI / DAXResultMeaning
Excel
Data → Refresh All
Power BI Desktop
Home → Refresh
Fresh rows Sofia’s Berlin lane file updates the same table name.

7. One flat mega-table trap

Friends,

Clean tables first. Relationships second. Fancy DAX third.

Why: Loading one huge flat sheet works until it hurts.

What: Prefer fact + dimension when keys exist.

How:

  1. If ProductName repeats on every sales row, plan a Product table.
  2. Keep ProductID on the fact.
  3. Load both; relate later.
  4. This chapter stops at clean tables.
ExcelPower BI / DAXResultMeaning
Excel
One sheet AllData
Power BI
Sales + Product tables
Ready to relate Neha’s clinic lines share ProductID with a master.

8. Classroom checklist before Desktop

Friends,

If Transform looks scary, fix the Excel Table first — often faster.

Why: A two-minute pass saves an hour.

What: Headers, types, names, one sheet per table.

How:

  1. Headers in row 1 only.
  2. No totals row mixed into data.
  3. No blank table name.
  4. Currency note on About sheet.
  5. Save .xlsx; then Get Data.
ExcelPower BI / DAXResultMeaning
Excel prep
About + clean Table
Power BI
Get Data succeeds first try
Green Amit’s Nashik desk file opens without Transform panic.

Practice tasks (12)

Use bridge-tables-practice.xlsx. LibreOffice-safe: prefer SUMIF / VLOOKUP / IF — avoid XLOOKUP, TEXTJOIN, TEXTSPLIT.

  1. Open the practice xlsx. Read About this data.
    Hint

    First sheet.

  2. On Raw_Range, create an Excel Table named Sales (Ctrl+T).
    Hint

    Include headers; exclude TOTAL row.

  3. Rename Amt_INR header to Amount.
    Hint

    Clean name.

  4. Write =SUM(D2:D7) for Amount (LibreOffice-safe).
    Hint

    Or structured ref in Excel.

  5. Flag blank OrderID with =IF(A2="","MISSING","ok").
    Hint

    Helper column.

  6. List three column types you would set in Power Query.
    Hint

    Date / Decimal / Text.

  7. Explain why ProductID should be Text even if digits.
    Hint

    Leading zeros / codes.

  8. On Types_Guess, fill Your guess for each row.
    Hint

    Match Intended where you agree.

  9. Write the Get Data click path in Notes.
    Hint

    Home → Get Data → Excel.

  10. Separate Currency from Amount on one sample (two columns).
    Hint

    INR vs 1250.

  11. Count rows with COUNTA on OrderID (ignore TOTAL).
    Hint

    No TEXTJOIN.

  12. Write one risk of loading a sheet that still has a Total row.
    Hint

    Totals inflate SUM.

Quick quiz

Q1. Ctrl+T creates…

Q2. Best place to set Decimal/Date types before the model?

Q3. ProductID with leading zeros should usually be…

Q4. Close & Apply in Desktop mainly loads into…

Q5. Currency symbols in column names are…

Q6. A totals row inside the data table will…

Q7. Staging query tip:

Q8. Before Get Data, Excel prep should include…

Loading practice tasks...

  1. Rows in the fact table (Easy): How many orders are in the Sales table?
  2. Total amount (Easy): Add up the Amount column of Sales.
  3. Total quantity (Easy): Add up the Qty column of Sales.
  4. Products in the dimension (Easy): How many products are in the Products table?
  5. Products actually sold (Medium): How many of the 5 Product IDs (P01 to P05) appear at least once in Sales?
  6. Amount for one city (Medium): Add up Amount where City is "London".
  7. Product name through the relationship (Medium): What is the Product name for Product ID "P03"?
  8. Sales of one product (Medium): Add up Amount where Product ID is "P03".
  9. Average order amount (Medium): Find the average Amount, rounded to 0 decimals.
  10. Category of the first order (Hard): Find the Category of the product in the first order.
  11. Biggest order in London (Hard): What is the largest Amount where City is "London"?
  12. Share of P03 (Hard): What share of the total Amount comes from Product ID "P03"? Round to 3 decimals.

Quick revision cards (3)

Approved Excel card style: standalone, no tip/photo section, QR to this lesson.

Revision card: Card 1 — Named table
Card 1 — Named table
Revision card: Card 2 — Column types
Card 2 — Column types
Revision card: Card 3 — Get Data
Card 3 — Get Data