Measures Can Do Math
Part of the Power BI Basics section of Coddy's Power BI journey. Lesson 11 of 28.
A measure can do math with results: + - * /.
Average Price Paid = SUM(Sales[Amount]) / SUM(Sales[Quantity])Each SUM is worked out for the bar's rows first; then they are divided.
Challenge
EasyWhat does a customer pay per item, on average? Write Average Price Paid: the total of Sales[Amount] divided by the total of Sales[Quantity]. It is checked by category.
Try it yourself
Average Price Paid =| Category | Average Price Paid |
|---|---|
| Coffee | |
| Tea | |
| Bakery | |
| Merch | |
| Total |
- Sales
- Products
- ProductID
- Product
- Category
- UnitPrice
- UnitCost
- Stores
- Customers
- Dates
- Targets
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