Forum Discussion

prasad1211's avatar
prasad1211
Copper Contributor
Oct 18, 2020
Solved

Pivot table - Running totals, Running % contribution calculations

Hi Experts,   I am trying to generate a simple Pivot table for a table with basic data of Product, Product description, Date of sales, Sale Qty and Sale Amount. Pretty common data I presume. I crea...
  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Oct 19, 2020

    prasad1211 Right-click on any item in the "Material ID" column and select "Expand all fields". Then all material descriptions become visible again, and a (sub)total for each "material ID" is shown. But your table doesn't look how you want it. The sub-total is part of the Design ribbon (while a cell is selected inside the PT).

     

    What this shows you is that the "Show value as  - Running Total In" is applied to the first row header "Material ID". Excel takes the sub-totals for each material ID to create the running total. Difficult to explain in words.

     

    If the material description is unique for every material ID, just leave it out of the PT that creates the running totals (example attached). Add the descriptions back from a master Materials table, using one of the LOOKUP functions available in Excel.

Resources