Pivot Table subtotal error

Tidr0001

New Member
Joined
Sep 25, 2013
Messages
12

Actual

<tbody>
</tbody>

Current

<tbody>
</tbody>

Needed

<tbody>
</tbody>

Store A

<tbody>
</tbody>

Prod A

<tbody>
</tbody>
3
3
3

Prod B

<tbody>
</tbody>
-5

Prod C

<tbody>
</tbody>
7
7
7

Store A Total

<tbody>
</tbody>
5
5
10

<tbody>
</tbody>
I have a pivot table with Store, Products, and Sale or Cost.

Each Store has products that fall under it and some products have positive sales while others have negative costs.

In the Pivot Table, I have a calculated Field where if the product had positive sales, capture the amount.
If the product had negative sales (or cost) return 0 (zero - positive sales)

=IF(Jan Sales > 0, Jan Sales,0)

At the product level, this works fine.

However, when the Pivot Table calculated the Subtotal for each store, it is reducing Sales by those negative sales (or cost) I am looking to remove.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,215,480
Messages
6,125,048
Members
449,206
Latest member
Healthydogs

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