Gomaa Intelligence.Data Hub
عربي

Foundations › Power BI › The Model: Build the Foundation

🧱 The Model: Build the Foundation

Columns or Measures?

Lesson 5 / 14· 9 min

One of the most confusing beginner questions: should this calculation be a Column or a Measure? The quick answer: if the number is aggregated or changes with filters, make it a Measure.

Calculated ColumnMeasure
CalculatedPer row and stored in the modelOn demand, per Filter Context
Reacts to filters?No, the value is fixedYes, changes with each slicer and visual
Effect on sizeGrows the modelStores no data
Best forRow labels or slicing (price band)Totals and ratios (sales, margin)
DAX
Sales Band = IF(FactSales[Sales] >= 10000, "Big", "Small")

A Calculated Column example: it computes a 'Big' or 'Small' label per row and stores it. Suitable because it is a label for the row itself.

Measure examples: total sales, profit and margin. Run them and see how each category gets its own value from the same formula.

▶ Try DAX
Total Sales = SUM(FactSales[Sales])
Total Cost = SUM(FactSales[Cost])
Profit = [Total Sales] - [Total Cost]
Margin % = DIVIDE([Profit],[Total Sales])

The same four formulas, with results changing per category because a measure is evaluated in filter context. Try changing by to DimChannel[Channel].

🧩 For each case: Column or Measure?

Your task: write your first two measures

Exercise 1 — Write a measure named Answer that calculates the total quantity sold (Quantity).

Exercise 2 — Write a measure named Answer for the average order value: total sales divided by the distinct count of OrderID. Use DIVIDE.

❓ Why do we prefer a Measure for totals?

Do it in real Power BI Desktop

Summary
  • A Column is calculated per row and stored; a Measure is calculated on demand per Filter Context.
  • Totals and ratios = Measures; fixed per-row labels = Columns.
  • Never sum per-row ratios; compute the ratio as a Measure with DIVIDE.
  • Write Total Sales, Profit and Margin % as your first measures.

Need a real Power BI dashboard for your business?

I design a data model and an executive dashboard fitted to your business and your real data.

Request an analytics service ↗
Get your data analyzed by an expert ↗