Compare mode reads one visual as two sides and the change between them, for example two periods. Turn it on for one visual, name the sides, and read the change as extra columns, a series or a split layout; you can also scope a slicer so it filters only one side.
Turn on Compare
Select Edit in the report header. It appears only when you can edit the report; for saving, see Build a report.
Select one visual that supports compare (the list is below), and open its Visual tab.
Find the Comparison section and switch Compare on in its header. The section appears only for visual types that support compare.
Under Show, each output has its own switch: the two sides, Diff and Diff %. The two sides and Diff start on; switch Diff % on to add the percentage.
While Compare is off, the section hints what it will show, using your side names: Turn on to show First and Second side by side, with their difference.
The other sections of the Visual tab are covered on Format a visual.
An enabled comparison produces up to four outputs, and each one has its own switch under Show:
Output
What it reads
First
the first side's values
Second
the second side's values
Diff
the first side minus the second
Diff %
the difference as a percentage of the second side
A compare column or series is named with the value and the output joined by a middle dot: Revenue · First, Revenue · Diff %. In a Table or Matrix each shown output becomes its own column.
On Bar, Combo and Line the sides become series; on Pie, Donut and Funnel they become panels; a KPI shows the first side as its value with the second beside it.
Where only one side has a value, the other side stays empty, and so does Diff.
Diff % is calculated for numeric values only, including counts such as Count and Distinct; counts stay whole numbers. It prints as a percentage with one decimal place, even when the value's own format is Currency or Number, and stays empty when the second side is zero, because the share is undefined then.
A date value gets its difference in days, and a date and time value in seconds, instead: these show a Diff but never a Diff %.
A text value shows both sides without a difference.
Name the sides and the difference
The sides start out named First and Second.
Diff label and Diff % label rename the difference and its percentage on the visual and in a download. Leave either field blank and its default name (Diff or Diff %) comes back.
Every name holds up to 40 characters and is trimmed of spaces at either end.
On a slicer scoped to one side, the Scope label names that side; the field's explanation reads Shared by every slicer on this side and by the compare tiles. See Scope a slicer to one side.
The labels only name the outputs; they never change the numbers.
Add an icon to a difference
The control beside Diff label and Diff % label adds an icon. It reads Add an icon to Diff before one is picked, and Diff icon once one is set, using the name you typed.
It opens a picker with the search field Search icons and 26 icons: Diff, Percent, Arrow up, Arrow down, Arrow up down, Arrow right, Arrow up right, Arrow down right, Trending up, Trending down, Chevrons up down, Move vertical, Triangle, Plus, Minus, Equal, Sigma, Hash, Calculator, Scale, Compare, Activity, Bar chart, Circle dot, Target and Flag.
Picking one closes the picker, and Remove icon takes it off again. When a search finds no match, the picker reads No icon matches that name.
The icon shows beside the difference's name, for example in a Table or Matrix header and in tooltips. A saved icon that the picker no longer offers simply does not show.
Colours follow the sides
The first value's sides take the first two palette colours, each further value takes the next pair, and the same colour means the same side wherever a comparison appears in the report.
A difference plotted as a series takes its colour after the two sides of every value, so it never takes a side's colour.
Split the visual or plot the difference
On Bar, Combo and Line, a toggle in the Comparison section plots the difference as its own series beside the two sides. The toggle carries your diff name, for example Plot Change as a series.
On Pie, Donut and Funnel, the tile divides into equal panels, one per shown side, each captioned with its side's name.
The panels share one legend, one set of tooltips and one colour map, and both use the same item order, so they read as one visual: hovering over a slice in one panel highlights the same category in the other.
Split sets the layout: Auto, Side by side or Stacked. Auto puts the panels side by side while the tile is at least as wide as it is tall and stacks them when it is taller than wide; a tile that has not been measured yet counts as wide.
By visual type
Funnel: stages fall by the first side's value, so both sides read in the same order; when an explicit sort is set, the server's order is kept instead.
Table and Matrix: the sides and Diff keep the cell formatting (background colour, data bars or icons) and the column colour of the value they were split from, so a scale set once on Revenue paints Revenue · First and Revenue · Second alike. Diff % never takes inherited cell formatting, because it is a ratio on its own scale, but it keeps the column colour. See Cell and column formatting.
KPI: the first side is the value, the second sits in the comparison block, and the change reads as a percentage; while Diff is switched on, an absolute difference line joins them.
Key tree: a chip beside an expanded level's name carries the difference percentage, green when the value rose and red when it fell; where a value has no difference, the chip shows a dash and its tooltip reads Diff: not available, with the name you gave the difference.
When the two sides never meet
When a visual groups its rows but no row on the axis carries both sides, every difference would be one-sided, and the tile shows a hint naming your two sides: First and Second do not overlap on this axis; pick a comparable field or turn Compare off. Put a field both sides share on the axis, or turn Compare off.
Legends and Compare
A legend field and Compare compete for the same slot.
While Compare is off and a field sits in Legend, the switch is disabled and its tooltip reads Remove the Legend field to compare: a legend and two scopes would multiply the series.
While Compare is on, adding a legend field pauses it: Compare is paused while a Legend field is set: the two scopes take the legend slot. Remove the Legend field to compare, or turn Compare off. Remove the field from Legend to resume.
Scope a slicer to one side
Comparison scope appears on a slicer, and on a custom visual that acts as a slicer.
Set Scope to Both, the first name or the second name. Picking a side makes the slicer filter only that side; until you pick one, the hint reads Pick a side to make this slicer filter only First or only Second. (your side names stand in for First and Second).
The Scope label names that side for every slicer scoped to it and for the compare tiles, because side names are report-wide. Clearing the field while you type does not snap it back to the old name.
On a slicer group, setting the scope reaches every member of the group.
Exports and downloads
A download of a compared visual renames its columns using your compare labels, so the file reads as the sides and the difference.
If two of your labels would produce the same download header, the download is refused until you change the compare labels.
Compare works on Bar, Combo, Line, Pie, Donut, Funnel, Key tree, Table, Matrix and KPI visuals. Plotting the difference as its own series is offered on Bar, Combo and Line, and the Split layout on Pie, Donut and Funnel.
Why is the Compare switch disabled?
A field sits in the Legend well, and a legend plus two sides would multiply the series. The tooltip reads Remove the Legend field to compare: a legend and two scopes would multiply the series. Remove that field and the switch frees up.
Why did Compare pause after I added a Legend field?
With Compare already on, a legend field pauses it instead of disabling it: the two sides take the legend slot. The section reads Compare is paused while a Legend field is set: the two scopes take the legend slot. Remove the Legend field to compare, or turn Compare off. Remove the field from Legend to resume, or turn Compare off.
Why does one side of my comparison show no values?
A value that appears on only one side has nothing to show on the other, so that cell stays empty. When the two sides do not overlap on the axis at all, every row is one-sided, and the visual shows the overlap hint. Pick fields both sides share, or turn Compare off.
Can I compare more than two periods in one visual?
No. A comparison has exactly two sides. For a third period, add another visual and switch Compare on for it.
How long can a side or difference name be?
Up to 40 characters, trimmed of spaces at either end. A blank name falls back to its default: First, Second, Diff or Diff %.
Why is there no Diff % on my date or text column?
Diff % is only calculated for numeric values, including counts. A date value shows its difference in days, a date and time value in seconds, and a text value shows the two sides only.
What does Diff % show when the second side is zero?
Nothing: the share is undefined when the second side is zero, so the cell stays empty. The absolute Diff still shows.
When do the split panels stack instead of sitting side by side?
With Split set to Auto, panels sit side by side while the tile is at least as wide as it is tall and stack when it is taller than wide; a tile that has not been measured yet counts as wide. Choose Side by side or Stacked to fix the layout yourself.
Do my formatting rules reach the compare columns on a Table or Matrix?
Yes, for the sides and Diff: they keep the cell formatting (background colour, data bars or icons) and the column colour of the value they were split from. Diff % never inherits cell formatting, because it is a ratio on a different scale, but it keeps the column colour. See Cell and column formatting.
How do I make a slicer filter only one side?
Open the slicer's Comparison scope and set Scope to the side you want, or to Both. The Scope label names that side for every slicer scoped to it and for the compare tiles. On a slicer group, the scope reaches every member.
Why is my download of a compared visual refused?
Two of your labels would produce the same download header, and a file cannot carry two identical columns. Give the sides and the difference distinct names, then download again.