Google-sheets – eliminate redundent totals in google pivot tables

google sheetsgoogle-apps-scriptpivot table

Given the general difficulty of doing much with google pivot table, I expect the answer to be "No".

In the snippet below I would like to keep lines with the totals in green shading and not see the lines with yellow shading.

enter image description here

Clicking the – signs collapses the detail leaving only the total.
It also would require a manual step to to go through and check each time the inventory changes.

In effect I want:

"if (number of details lines = 1) then (Don't show total)

Best Answer

Click the [-] button on the row above the subtotal that you want to hide.