Tutorial

Distributions, outliers and correlation in Power BI

This guide walks through the three charts of Statistics Suite — distribution, histogram and correlation matrix — and the settings that matter, with a sample dataset you can download and follow along with.

Follow along: download the sample dataset (198 fictional employees with Department, Level, Location, Salary, Bonus and Tenure, including four planted outliers). Every number quoted on this page comes from that file.

1. Quick start: the one field that matters

  1. Values = the number you want to study, for example Salary.
    One field for a distribution or histogram; two or more for a correlation matrix.
  2. Row detail (ID) = the field that identifies one record, for example Employee.
    This is the one that matters. Without it Power BI adds the whole column up into a single number before the visual sees it. Statistics Suite tells you so instead of drawing a chart from one value.
  3. Group by = a category to compare, for example Level.
    One box per group, ordered by median unless you choose otherwise in the Axis card.
  4. Compare by (legend) and Tooltips are optional.

Chart type is the first card of the format pane: Distribution, Histogram or Correlation matrix. “Show advanced settings” in the same card reveals the rest of the pane; the essentials are visible without it.

Four box plots for the Lead, Senior, Mid and Junior salary bands with every employee drawn as a point, a mean marker, sample sizes and the most extreme outliers named.
Salary by Level from the sample file: 27, 49, 63 and 59 people. The Junior box reads median 45,462 with quartiles 44,669 and 48,143.

2. Reading the box, and agreeing with Excel

The box spans the first to the third quartile, the line inside is the median, and the diamond is the mean. The whiskers reach to the last value inside the fences; anything beyond is drawn as an outlier.

3. Points, violins and layers

Box, violin and points are three independent layers (Layers card). Use any combination.

Salary by department drawn as violins with a box and every employee as a point inside each; each violin shows several bumps, one per salary band.
Salary by Department. Every department spans all four salary bands, and the violin shows them as separate bumps where a box would show a single range.

4. Outliers you can act on

An outlier is a row of your data, not just a red dot.

A box plot with two named outliers selected and the other points dimmed, next to a table filtered to those two employees.
Two outliers selected with Ctrl+click. The native table beside the chart follows.

5. Histogram

A histogram of salary in ten bins of 20,000 with counts on the bars, a fitted normal curve and reference lines at the mean and plus two standard deviations.
The sample salaries: counts 1, 58, 62, 33, 19, 22, 1, 0, 1, 1. The fitted normal shows at a glance that the data is skewed, and the two highest earners sit far beyond +2σ.

6. Correlation matrix

Put two or more numeric fields in Values and keep the Row detail field. Each cell is the correlation between two fields across your records.

A three-by-three Pearson correlation matrix of Salary, Bonus and Tenure with significance stars, beside a native scatter chart of Bonus against Salary.
0.97 with three stars, and beside it a native scatter chart showing what 0.97 looks like.

7. Legend, colours and text

8. Large tables and honest messages

Something not covered here?

Ask — the answer usually ends up back in this tutorial.