Excel PivotTable Show Values As

Mynda Treacy

September 7, 2016

The Excel PivotTable Show Values As menu has a load of handy instant calculations you can use. For example you can choose to show the values as:

  • Percentages of the row, column or grand totals
  • The difference from or % difference from
  • Running totals
  • Ranking
  • And index

Kevin emailed me with a vehicle log book and he wanted to calculate the distance of each trip. It’s pretty complicated with formulas but with the PivotTable Show Values As tool it’s a doddle. Let’s take a look.

Excel PivotTable Show Values As Example

Let’s say you have a list of vehicles and you record the odometer reading at the end of each trip like so:

vehicle odometer reading

From this data I can create the PivotTable below using the Show Values As > Difference From > Base Field: Date, Base Item: Previous, to calculate the KMS Travelled shown in the third column:

create Excel pivottable using show values as

Steps to build this PivotTable

Step 1: Insert a PivotTable

insert a pivottable

Step 2: Drag the KMS Reading column to the values area again so you have it in the PivotTable twice:

KMS Reading column

Step 3: right-click the Sum of KMS Reading2 column > Show Values As > Difference From:

KMS Reading2 column

Note: in Excel 2007 you'll find the Show Values As menu in the Value Field Settings > Show values as tab.

In the Calculation Difference From menu choose Base Field: Date and Base Item: (previous):

Calculation Difference From

Step 4: Remove up the subtotals for the vehicles; right-click Vehicle 1 > deselect ‘Subtotal “Vehicle Name”. And remove the Grand Total; right-click Grand Total>‘Remove Grand Total’.

Remove Grand Total

Step 5: Give the ‘Sum of KMS Reading2’ column a new name; simply type over the header cell with a new name. Just make sure it’s different to any of the existing source data column names:

Sum of KMS Reading2

So you can see it’s pretty easy to calculate the difference from one odometer reading to the next using Show Values As.

Let’s look at some other things we can do.

Excel PivotTable Show Values As Examples

The PivotTable below uses Show Values As to display the % of Grand Total (for the Order Amount) and Sales Person Rank (based on Order Amount) in ascending order:

% of Grand Total

And if we add another grouping for the countries the % of Grand Total adapts, as you can see below.

add another grouping

In the image above the last column, the % of Parent Total, calculates the % Order Amount within each country.

Also, in the examples above I’ve left the Sum of Order Amount columns in the PivotTables for reference, but you can remove them if you prefer to just see the result of the Show Values As fields. For example, in the log book analysis you might only want to see the KMS travelled like so:

using show values as

More Show Values As

A while back I wrote a tutorial on how to use Show Values As to calculate the year on year change.

Download the workbook and try it yourself

There are loads of ways you can use the PivotTable Show Values As tool so download the workbook below and have a play around with it.

Enter your email address below to download the sample workbook.

By submitting your email address you agree that we can email you our Excel newsletter.

Thanks

Thanks to Kevin for asking the vehicle log book question which prompted me to write about this topic.

Have you got a favourite use for Show Values As? Please share it in the comments below.

4 thoughts on “Excel PivotTable Show Values As”

  1. Hi Mynda,

    That’s a great tool!
    What if we needed to display the total numbers of KM traveled by Vehicle? So showing somewhere that vehicle 1 has traveled 110 KM so far?

    Reply
    • Hi Lionel,

      Great question. It’s not straight forward.

      You can either add columns to your source data to populate the Max and Min for each vehicle. e.g. with MIN(IF and MAX(IF array formulas. You can then create a PivotTable with Vehicle in the rows and your Min & Max values in the columns, then add a Calculated Field to subtract the Min from the Max.

      Or you can use Power Pivot and write a DAX Measure to perform the calculation if you have Excel 2010, 2013 or 2016 with Power Pivot enabled.

      Let me know if you need more specific instructions.

      Mynda

      Reply
  2. This is super. After investing much time with PowerPivot, I’ve not really leveraged the power of good old native (non-PP) Pivot Tables. This article helped demystify some of this capability. I need to explore some more!

    Thanks very much.

    Reply

Leave a Comment

Current ye@r *