Power BI Advanced AnalyticsLesson 16 of 53
Lesson 16 of 53

DAX Fundamentals: Calculated Columns vs Measures

Overview & Learning Objectives

A high-performing model must also be easy for self-service report authors and business users to understand. Model hygiene involves organizing hundreds of fields into clean Display Folders, hiding technical foreign keys that shouldn't be sliced, setting proper number formats (Currency, Percentage), and creating dedicated Measure Tables.

  • Create a dedicated `_Measures` table to store all DAX calculations cleanly.
  • Organize fields into nested Display Folders (e.g. `Base Metrics`, `Time Intelligence`, `YoY Growth`).
  • Hide technical foreign keys and internal surrogate IDs to prevent user confusion.

Industry Standard

Standard: At Amazon and Deloitte, production Power BI models must store all DAX measures in a dedicated `_Measures` table with explicit display folders and zero visible technical ID keys in Fact tables.

Real-World Example: FreshBake Artisan Patisserie

FreshBake's model has 40 measures and 15 raw columns. Without folders, analysts spend minutes searching through an unorganized field list.

Field NameTypeDisplay FolderVisibility in Report View
Fact_Sales[StoreID]Foreign KeyNoneHidden (Prevents user confusion)
[Total Revenue]DAX Measure01 Revenue MetricsVisible (Formatted as ₹#,##0)
[YoY Revenue Growth %]DAX Measure02 Growth MetricsVisible (Formatted as 0.0%)
[Orders Count]DAX Measure03 Volume MetricsVisible (Formatted as #,##0)

Syntax & Core Workflow

Model View -> Select Measure -> In Properties Pane -> Set "Display folder" to "01 Revenue Metrics" -> Set Format to "Currency" / "Percentage"

Parameters Breakdown

  • Display Folder: A logical directory inside the Data pane used to group related measures or columns together.
  • Hide in Report View: Makes technical keys invisible in the report canvas while keeping them fully functional in relationships.
  • _Measures Table: An empty table created specifically to hold all business measures at the top of the Data pane.
  • Format String: Controls how numbers display on visual cards and axes (e.g. ₹#,##0 or 0.0%).

Sample Walkthrough (Q&A)

Question: How do you force the dedicated `_Measures` table to appear at the very top of the Data pane?

Formula / Action: Prefix the table name with an underscore or symbol: `_Measures` or ` Measures`.

Result: Alphabetical sorting places it at the very top of the fields list.

Explanation: Power BI sorts tables alphabetically in the Data pane. Adding an underscore (`_`) ensures report authors find key metrics instantly.

Common Mistakes & Limitations

  • Leaving foreign key columns (like `CustomerID` or `StoreID`) visible in Fact tables, causing users to mistakenly drag them into slicers instead of using the Dimension table.
  • Failing to format percentage measures, so a 14.5% profit margin displays as the unreadable decimal `0.1453298`.

Keyboard Shortcuts

ActionWindowsMac
Multi-select measures in Model ViewCtrl + Click multiple measuresCmd + Click
Hide selected fieldsRight-click -> Hide in report viewRight-click -> Hide

Pro Tips & Modern Alternatives

  • Create sub-folders by using a backslash in the Display Folder property: `Revenue\Time Intelligence` creates a nested folder structure.
  • Add concise descriptions in the "Description" property in Model View so users see helpful tooltips when hovering over measures in the Data pane.