Measures Use Other Measures
Part of the Power BI Basics section of Coddy's Power BI journey. Lesson 13 of 28.
Use a measure inside another by its name in square brackets.
Units per Line = DIVIDE([Total Units], [Order Lines])A column has its table, Sales[Quantity]; a measure only its name, [Total Units].
Change a measure once and every measure built on it follows.
Challenge
EasyYou wrote Units per Line with SUM and COUNTROWS. The model now has Total Units and Order Lines: write Units per Line again from those two measures. It is checked by category.
Try it yourself
Units per Line =| Category | Units per Line |
|---|---|
| Coffee | |
| Tea | |
| Bakery | |
| Merch | |
| Total |
- Sales
- Total Units
- Order Lines
- Products
- ProductID
- Product
- Category
- UnitPrice
- UnitCost
- Stores
- Customers
- Dates
- Targets
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Power BI Basics
2Your First Measures
What a Measure IsCounting RowsAverage, Min and MaxCounting Distinct ThingsMeasures Can Do MathSafe Division with DIVIDEMeasures Use Other MeasuresRecap - The Numbers Mia Wants