Powerpivot calculated field question

edusuro

New Member
Joined
Aug 12, 2014
Messages
14
Hi all,

I am currently stuck trying to figure out a formula to obtain the desired results in a calculated field in excel. Basically, I my structure is similar to below.

NameInventoryRestock levelReplenish Qty.
Group 11515
Line 1451
Line 2550
Line 3650

<tbody>
</tbody>

The formula for replenish qty currently is:
=IF(([Restock level]-SUM([Inventory]))<0,0,([Restock level]-SUM([Inventory])))

This formula provides me with the number I need at the item level. However, for the total, I need the pivot table to show the sum of all replenish qty from every line, in this case 1. Instead the formula performs the same calculation at the aggregate level which gives me 0.

Does anyone know a way I can bypass this and have it show the actual sum of that field?

THANKS!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,215,581
Messages
6,125,656
Members
449,246
Latest member
jbbtz28

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