Scatter, bubble and dot plot charts in Power BI

How scatter, bubble and dot plot charts in Power BI show the relationship between two numbers, the Values, X-axis, Y-axis, Size, Legend and Play axis fields, quadrants with average lines, and the traps of correlation.

Short answer: a scatter chart places each item (a customer, a product, a store) as a point by two measures, one on the X-axis and one on the Y-axis, so it shows whether they move together and which items stand out. Add a third measure to Size and the points become a bubble chart; put a category on the X-axis and it becomes a dot plot. The field in Values decides what one point is, and the Play axis animates the points over time.

"Do stores that spend more on marketing sell more?" is a question no bar chart can answer for 80 stores at once. A scatter chart answers it in one picture, and shows the six stores that spend a lot and sell little.

What does a scatter chart show?

Four regions by discount and margin, bubble size by revenue:

01020304005101520NorthEastSouthWestOnlineAverage discount %Margin %
Discount against margin by region; bubble size is revenue

The more discount, the lower the margin, and the regions that discount least are also the biggest. A bar chart of margin by region shows the ranking; only the scatter shows the relationship.

When is it the right chart?

Microsoft lists the scatter chart's uses: the relationship between two numerical values; two groups of numbers as one series of x and y coordinates; patterns in large sets of data; many data points regardless of time; a logarithmic horizontal axis. Bubbles add: emphasising differences with size, three series of values at once, financial data as a picture, and quadrants. The dot plot's advantage is categorical data along the horizontal axis.

Which fields does it take?

WellWhat it does
Valuesthe field that makes one point per value, for example Store[Store Name]
X-axisa measure for the horizontal position
Y-axisa measure for the vertical position
Legendcolours the points by a category
Sizea measure for the bubble size: a bubble chart
Play axisa date or period: a play button animates the points through time
Tooltipsextra measures on hover

Without a field in Values, the chart has one point: the total. That is the most common "my scatter chart shows one dot" problem.

How do you split it into quadrants?

Averages split the chart into four groups: high-high, high-low and so on. In the Analytics pane add an Average line for the X-axis and one for the Y-axis. Or, to use the groups elsewhere, write them as measures:

Avg Discount All Stores =
CALCULATE ( AVERAGEX ( VALUES ( Store[Store Name] ), [Discount %] ), ALLSELECTED ( Store ) )

Avg Margin All Stores =
CALCULATE ( AVERAGEX ( VALUES ( Store[Store Name] ), [Margin %] ), ALLSELECTED ( Store ) )

Store Quadrant =
SWITCH (
    TRUE (),
    [Discount %] <= [Avg Discount All Stores] && [Margin %] >= [Avg Margin All Stores], "Low discount, high margin",
    [Discount %] > [Avg Discount All Stores] && [Margin %] >= [Avg Margin All Stores], "High discount, high margin",
    [Discount %] <= [Avg Discount All Stores], "Low discount, low margin",
    "High discount, low margin"
)

AVERAGEX over the stores gives the average of the points on the chart (each store counts once), not the average of all sales. Put Store Quadrant in a table next to the chart, or use a numeric version of it to colour the points with Markers, Color, fx.

What does the Play axis add?

Put Date[Year] on the Play axis and a play button appears under the chart. Each year the points move to their new place, and selecting a point draws its trail. It shows how a product moved from "small and low margin" to "big and high margin" over five years, which a static chart cannot. The animation is for presenting; for analysis, a trail on one selected point is often enough.

What goes wrong?

  • One dot. No field in Values, so everything is aggregated into one point.
  • Correlation read as cause. Stores with more marketing sell more, but bigger stores also get more marketing. The chart shows the relationship, not its reason.
  • Overplotting. Ten thousand points become a blot. Power BI samples large scatter charts (a high-density sampling keeps the outliers); filter, or aggregate to a coarser level.
  • Bubble sizes. People read bubble area roughly; use size for a rough third dimension, never for exact comparisons.
  • Mixing scales. One point with 100 times the revenue squeezes all others into a corner; try a logarithmic axis.

Where can you check this?

Where do you start?

Pick what one point is, put it in Values, add two measures, and draw average lines to split the chart into quadrants. The Analytics pane adds trend lines, and key influencers tests which factors move a measure.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.