178 Practical PowerPivot & DAX Formulas for Excel 2010
Pivot Charts
You are probably not surprised to learn that there are many different ways of creating a
pivot chart. How you do so is dictated by your requirements. Do you want a single chart
or multiple charts? Should a chart be linked to an existing pivot table or created from
scratch? Would you like to create a pivot chart and a pivot table at the same time? If
you create them at the same time, how do you link or separate them?
Creating a Pivot Chart
A pivot chart always works in conjunction with a pivot table. If you create a pivot
chart, and it’s not linked to a pivot table, a separate pivot table is created on a separate
worksheet to underlie the pivot chart. You can create a pivot chart, against your current
PowerPivot model, from the PivotTable button on the Excel PowerPivot ribbon, or on
the PowerPivot Home ribbon. When you do so, you can create one, two, or four charts.
If you opt for a single pivot chart, you can decide whether you want a pivot table at the
same time, or not. If you create both a pivot chart and a table, they are independent—
changes to the data in one do not affect the other one. Instead, another pivot table,
linked to the pivot chart, is automatically added to another worksheet. You end up
with one chart and two tables, the pivot table on the same worksheet as the pivot chart
being independent. When you insert more than one chart, each chart has its own
PowerPivot Field List and its own linked pivot table. Each of the latter also has its
own PowerPivot Field List.
Another approach is to start just with a pivot table, using the PivotTable button in
Excel or the PowerPivot window, and adding the pivot chart later. Should you adopt
this approach, then the pivot chart you create can be independent of the pivot table or
linked. To insert a pivot chart that is not linked, use the PivotTable button in Excel or
PowerPivot again. To insert a pivot chart that is linked to your table, use the PivotChart
button in the Tools group on the PivotTable Tools/Options ribbon in Excel.
Linking a pivot chart to an existing pivot table is quite useful for BI. It enables you
to analyze the same scenario graphically and with numbers at the same time. The pivot
chart will have its own PowerPivot Field List, but it will be interdependent with the pivot
table PowerPivot Field List—if you make changes in one field list, it will update the other
one. The next set of step-by-step instructions shows a linked pivot table and chart.
PowerPivot Field List for Pivot Charts
The PowerPivot Field List for a pivot chart is shown in Figure 5-66.
This field list is pretty similar to the field list you see for a pivot table, apart from two
of the six drop-zones—Column Labels and Row Labels. Column Labels has a new title,
Legend Fields (Series). The Row Labels drop-zone has become Axis Fields (Categories).