The count of different values in a field is the number a chart turns into bars, slices, lines or colors. It's often called the field's cardinality. Of all the parts of a shape, it's the one that most often decides whether a chart can be read.

A few, many, or one on every row

Take a table of basketball players: 280 rows, one per player, with each player's team, position, age and scoring.

  • A few values. Position holds 5. A bar for each, a color for each or a slice for each are all easy to read.
  • Many values. Team holds 10, which is about as many colors as a reader can tell apart at a glance. Past a dozen, a legend stops working: the reader can't match a color to its name. A field with 200 values can still be the bars of a sorted bar chart or the rows of a table, but not the colors of anything.
  • One on every row. PlayerID holds 280 values in 280 rows. A field like that is an identifier: it names each row rather than grouping them. It belongs in a label or a tooltip, and it's rarely an axis on its own.

So "how many different values?" is really "how many parts would this chart have to draw?" When the answer is too many for the chart you had in mind, you have three ways out: group the values into fewer, keep only the largest few, or choose a chart made for many parts.

Repeats: when a chart combines rows

Now take a table of orders: 2,623 rows, each one order, with the number of the store that took it. There are only 205 different store numbers, so most stores appear on many rows.

A chart that shows one bar per store can't draw 2,623 bars on 205 places. It combines each store's orders into one value, usually their total, sometimes their average or their count. The chart shows 205 bars, not 2,623.

That's a change of grain. The table's grain is one order; the chart's grain is one store. Neither is wrong, but you should know which one a chart shows, because a total of 28 orders and one large order look the same as a single bar. Power BI combines rows the same way before a visual sees them: a field it adds up arrives as one total for each store.

Several fields together

A table of household spending has a Month field with 36 values and a Category field with 10. It has 360 rows, which is 36 times 10: each row is one month and one category, and no row repeats another. A chart can use both fields at once, with the months along an axis and the categories as lines or stacked parts. Ten lines is close to the limit of what a reader can follow, which is the cardinality rule again.

Try it

The tool counts the different values in every field, and it says when rows repeat: how many there are, and how many groups a chart that combines them would show.

Loading the interactive...

One of the charts that fit this table, built in advance from the same rows:

A Pareto chart of the "Order Value by Store, Raw Order Rows" dataset: store_number sorted by order_value, with a line of the running share.
A Pareto chart of the "Order Value by Store, Raw Order Rows" dataset: store_number sorted by order_value, with a line of the running share.

How to read this Pareto chart Try it in the explorer

Find the line that counts the repeats. Then switch to the basketball players and find the field with a value on every row.