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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,214,846
Messages
6,121,905
Members
449,054
Latest member
luca142

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