Menu
CoddyTech

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 icon

Challenge

Easy

What 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 =
CategoryAverage Price Paid
Coffee
Tea
Bakery
Merch
Total
Fields
  • Sales
  • Products
    • ProductID
    • Product
    • Category
    • UnitPrice
    • UnitCost
  • Stores
  • Customers
  • Dates
  • Targets

All lessons in Power BI Basics