Ravindra BagaleCourses & study guides Track your progress

Excel → Power BI Bridge

Bridge 9. Measures vs calculated columns

Friends,

Friends, excel loves helper columns. Power BI loves measures. Same maths — different home. Choose by context, not by habit.

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

  • Spot helper-column habits.
  • Prefer measures for aggregations under filters.
  • Know when calculated columns are still right.
  • Write SUM / DIVIDE measure sketches safely.

A short story

Tax = Amount × Rate looks like a helper column in Excel. As a total under slicers, Total Tax is usually a measure. Year extracted for a Date relationship may still be a column — or better, a Date table.

Ravindra Bagale’s Tip

If it must respond to slicers as an aggregation, start with a measure. If it is a row attribute or a relationship key, consider a column.

1. Excel helper column habit

Friends,

Baked columns use memory. Measures calculate in filter context.

Why: Add a column, fill down, sum it.

What: Works on sheets; costly as a default in models.

How:

  1. On Helper_Tax, write =B2*C2 style tax (LibreOffice).
  2. Sum the helper.
  3. Notice it is baked per row.
  4. Ask: do I need this baked, or calculated on demand?
ExcelPower BI / DAXResultMeaning
Excel
Helper column + SUM
Power BI
Often a measure instead
Choice Priya totals tax without storing every row forever.

2. Measure first for totals

Friends,

Measures shine when filters change the answer.

Why: Total Sales = SUM(Amount).

What: New measure.

How:

  1. Create Total Sales := SUM(Fact[Amount]).
  2. Drop on a Card.
  3. Slice by City — number changes.
  4. No extra physical column required.
ExcelPower BI / DAXResultMeaning
Excel
SUM at bottom
DAX measure
SUM in model
Dynamic Emma’s Card respects the GBP slicer.

3. Filter context in one breath

Friends,

You did not rewrite the measure — the context changed.

Why: Slicers/filters change what a measure sees.

What: Same measure, different number.

How:

  1. Total Sales with City=Pune.
  2. Total Sales with City=Manchester.
  3. Same formula code.
  4. Teach with a Card + slicer demo.
ExcelPower BI / DAXResultMeaning
Excel
SUMIF variants
DAX
Filter context
Two answers Amit sees Nashik vs all.

4. When a column is still right

Friends,

If it describes the row, column/PQ. If it aggregates rows, measure.

Why: Keys, static labels, relationship fields.

What: Calculated column or PQ column.

How:

  1. FullName for display may be a column.
  2. Year helper only if you refuse a Date table (prefer Date table).
  3. Tax as a key to another table → column.
  4. Heavy row-by-row text logic → prefer PQ.
ExcelPower BI / DAXResultMeaning
Need attribute
Column / PQ
Need aggregate
Measure
Split Neha stores Category from a merge in PQ.

5. Safe ratios

Friends,

Average of ratios ≠ ratio of averages. Teach it once; save a year.

Why: Do not use plain / for totals blindly.

What: DIVIDE(num, den).

How:

  1. Avg Ticket := DIVIDE([Total Sales],[Order Count]).
  2. Avoid column of ratios then average (math trap).
  3. Prefer measure ratios on aggregates.
  4. Label units.
ExcelPower BI / DAXResultMeaning
Excel
Average of row ratios trap
DAX
DIVIDE on totals
Honest avg Omar’s fee average is total/count.

6. Calculated column cost

Friends,

Free-feeling columns are not free in a million-row fact.

Why: Each column stores values for every row.

What: Memory + refresh cost.

How:

  1. Huge fact + many calculated columns = heavy model.
  2. Prefer PQ for static transforms.
  3. Prefer measures for aggregates.
  4. Profile before adding “just one more” column.
ExcelPower BI / DAXResultMeaning
Excel
Columns feel free
Model
Columns cost RAM
Diet Chen Wei keeps the model lean.

7. Migrating a helper

Friends,

Decision beats nostalgia for fill-down.

Why: Ask three questions.

What: Attribute, key, or aggregate?

How:

  1. Is it used as a key? → column/PQ.
  2. Is it a display label? → column/PQ or visual.
  3. Is it summed/averaged under filters? → measure.
  4. Rewrite on Decide sheet.
ExcelPower BI / DAXResultMeaning
Habit
Always column
Bridge
Decide sheet
Clear Sofia migrates tax total to a measure.

8. Tiny measure kit

Friends,

Four solid measures beat forty random calculated columns.

Why: SUM, COUNTROWS, DIVIDE, CALCULATE peek.

What: Write in Notes; build in Desktop later.

How:

  1. Total Sales := SUM(...).
  2. Orders := COUNTROWS(Fact).
  3. Avg := DIVIDE([Total Sales],[Orders]).
  4. Pune Sales := CALCULATE([Total Sales], Dim_City[City]="Pune") — after relationships.
ExcelPower BI / DAXResultMeaning
Excel
SUMIF / COUNTIF
DAX
SUM / COUNTROWS / CALCULATE
Kit Ananya’s five-measure starter kit.

Practice tasks (12)

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

  1. Read About and Decide sheet.
    Hint

    Column vs measure.

  2. On Helper_Tax, fill Tax_helper_col with =B2*C2.
    Hint

    Excel habit.

  3. SUM the helper column.
    Hint

    Baked total.

  4. Write Total Tax as a measure sketch in Notes.
    Hint

    SUMX or Amount*Rate patterns — keep simple SUM of tax column if baked.

  5. Mark each Decide row with Column or Measure.
    Hint

    Your answers.

  6. Explain filter context with City slicer in 2 lines.
    Hint

    Notes.

  7. Draft DIVIDE average ticket measure text.
    Hint

    DIVIDE.

  8. Why not average a column of percentages?
    Hint

    Math trap.

  9. List two cases for calculated columns.
    Hint

    Key / label.

  10. COUNT rows on Helper_Tax with COUNTA.
    Hint

    Orders.

  11. Rewrite one Excel SUMIF as CALCULATE sketch.
    Hint

    After model.

  12. Memory reason to prefer measures on large facts?
    Hint

    RAM.

Quick quiz

Q1. Aggregations under slicers usually belong in…

Q2. A relationship key field should be…

Q3. Filter context means…

Q4. DIVIDE is safer than / because…

Q5. Average of row ratios vs ratio of totals…

Q6. Many calculated columns on a huge fact…

Q7. Excel helper fill-down in a model…

Q8. COUNTROWS on a fact is closest to…

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 — Helper habit
Card 1 — Helper habit
Revision card: Card 2 — Measure first
Card 2 — Measure first
Revision card: Card 3 — When a column
Card 3 — When a column