Menu
CoddyTech

Same Measure, Every Bar

Part of the Power BI Basics section of Coddy's Power BI journey. Lesson 15 of 28.

One measure in a chart by category gives every bar a different number.

Power BI calculates the measure once per bar, after filtering the rows to that bar: the Tea bar sums only tea rows.

Those filters are the filter context. The formula stays the same; the filter context changes.

challenge icon

Challenge

Beginner

The model has a Revenue measure. Use it: build a bar chart of [Revenue] by Products[Category].

Try it yourself

Bar chart
Fields
  • Sales
    • OrderID
    • Date
    • StoreID
    • ProductID
    • CustomerID
    • Quantity
    • UnitPrice
    • Amount
    • Revenue
  • Products
  • Stores
  • Customers
  • Dates
  • Targets

All lessons in Power BI Basics