Most charts don't draw a table's rows. They draw a summary: one value per bar, per point or per region. Making that summary is the step most people never see, because the tool does it the moment a field goes into Values.

Group by, then summarize

Every summary has two parts:

  1. Group by. Pick the field whose values become the parts of the chart: a store, a month, a department. All the rows with the same value go into one group.
  2. Summarize. Turn each group's rows into one number:
    • Sum adds them up: total revenue per store.
    • Count says how many rows there are: number of orders per store.
    • Average divides the sum by the count: average order value per store.

In Power BI, the field in the axis or legend is the group, and the field in Values gets a summary, Sum by default. The "Sum of" in a field name tells you a total was taken.

Which summary fits

  • Amounts (revenue, cost, units) usually want Sum.
  • Rates and ratios (a return rate, a percentage, an average price) want Average, or better, a rate recomputed from its parts. Adding rates up gives a meaningless number.
  • Anything can be counted. A table with no measure at all can still answer "how many?"

There's a trap with averages of averages. If each row is already a store's average order value, the average of those rows treats a store with 3 orders the same as a store with 300. When the parts are there, compute the average from the total and the count instead.

A worked example

Take a table of orders, one row per order, with the store number and the order value. There are 2,623 orders and 205 stores.

Group by store and you can ask three different questions:

  • Sum of order_value: which stores took the most money?
  • Count of orders: which stores were busiest?
  • Average order_value: which stores took the biggest orders?

The three can rank the stores in three different orders. A store with a few huge orders tops the average and sits low on the count. None of the three is "the" answer: each is a different question.

A lollipop chart of the "Order Value by Store, Raw Order Rows" dataset: a dot on a stem for each of 205 store_number values, at its order_value.
A lollipop chart of the "Order Value by Store, Raw Order Rows" dataset: a dot on a stem for each of 205 store_number values, at its order_value.

How to read this Lollipop chart Try it in the explorer

The store number itself has a role to play, and only some roles make sense. Try each one:

Loading the interactive...

What adding up hides

A summary keeps one number and throws away the rest. Two stores with the same average can look nothing alike underneath: one with every order near the average, the other with a few tiny orders and a few enormous ones. The total, the count and the average all miss that difference.

When the spread matters, keep it. A chart can show each group's average with a range around it, or every order as a dot. That's only possible while the table still has its rows. Once it's been summed to one row per store, the spread is gone for good.

An error bar plot of the "Order Value by Store, Raw Order Rows" dataset: each store_number's typical order_value, with its spread.
An error bar plot of the "Order Value by Store, Raw Order Rows" dataset: each store_number's typical order_value, with its spread.

How to read this Error bar plot Try it in the explorer

Try it

Pick a measure in one of your tables and ask the same grouping three ways: by Sum, by Count and by Average. Note which groups change rank between them. Then ask which of the three questions your reader actually has, and use that one.

That's the end of this module. The next one, Shape, puts these ideas together: how many rows, how many different values in each field, which fields are measures, and whether time or place is there.