Foundations › Power BI › The Model: Build the Foundation
🧱 The Model: Build the FoundationColumns or Measures?
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 Column | Measure | |
|---|---|---|
| Calculated | Per row and stored in the model | On demand, per Filter Context |
| Reacts to filters? | No, the value is fixed | Yes, changes with each slicer and visual |
| Effect on size | Grows the model | Stores no data |
| Best for | Row labels or slicing (price band) | Totals and ratios (sales, margin) |
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.
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?
A measure is calculated on demand in filter context, so it updates with each slicer without storing extra data.
Do it in real Power BI Desktop
- 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.