18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Analyzing Data with Pivot Tables 35<br />

After you create the calculated field, Excel adds it to the Values area of the pivot table (and it also appears in<br />

the PivotTable Field List). You can treat it just like any other field, with one exception: You can’t move it to<br />

the Row Labels, Column Labels, or Report Filter areas. It must remain in the Values area.<br />

Figure 35.16 shows the pivot table after adding the calculated field. The new field displayed Sum of Avg<br />

Unit Price, but I changed this label to Avg Price. I also changed the style to display banded columns.<br />

FIGURE 35.16<br />

This pivot table uses a calculated field.<br />

TIP<br />

The formulas that you develop can also use worksheet functions, but the functions can’t refer<br />

to cells or named ranges.<br />

Inserting a calculated item<br />

The preceding section describes how to create a calculated field. Excel also enables you to create a calculated<br />

item for a pivot table field. Keep in mind that a calculated field can be an alternative to adding a new field to<br />

your data source. A calculated item, on the other hand, is an alternative to adding a new row to the data<br />

source — a row that contains a formula that refers to other rows.<br />

In this example, you create four calculated items. Each item represents the commission earned on the quarter’s<br />

sales, according to the following schedule:<br />

n<br />

n<br />

n<br />

n<br />

NOTE<br />

Quarter 1: 10% of January, February, and March sales<br />

Quarter 2: 11% of April, May, and June sales<br />

Quarter 3: 12% of July, August, and September sales<br />

Quarter 4: 12.5% of October, November, and December sales<br />

Modifying the source data to obtain this information would require inserting 16 new rows,<br />

each with formulas. So, for this example, creating four calculated items may be an easier task.<br />

621

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!