Pivot table summed field query

Riccardo S

New Member
Joined
Jan 31, 2020
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Hi all, I have a pivot table based on stock levels over multiple weeks, most of the fields work as expected (transfer in/out, etc.) but one I'm having trouble with is 'Opening Qty'. The issue is that this field sums the 'Opening Qty' from each individual week in the range when I actually I just want it to show the 'Opening Qty' from the first week in the range. Any help would be appreciated.

Thanks
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
For anyone interested my workaround so far has been index the worksheets as they're being read by my compiling routine, the weeks order being from left to right (1st=1, 2nd=2, etc.). This index is added into the compiling array which is then dumped into a data table along with the rest of the data. In the data table I've added a column named 'True Opening Qty' which contains the formula '=IF([Tab Index]=1,[@[Opening Qty]],0)' which basically copies the Opening Qty value to the column only if the tab index is 1 (the first week regardless of week number). From there I just used the 'True Opening Qty' in the pivot table and everything seems to work fine. I'd still be interested to here of any other/better ways of accomplishing this task though.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,516
Messages
6,119,981
Members
448,934
Latest member
audette89

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top