How to take last available data in group in calculated field?

kaplak

New Member
Joined
Jul 8, 2008
Messages
1
Dear Guys,

I have a problem in here,

I want to have some calculated field that will check the waste level of material.

the calculation of waste is :
WASTE = ( Sum (ACTUAL_MATERIAL_USAGE) - Sum (THEORETICAL_MATERIAL_USAGE) - STOCK_IN_PROCESS )/
Sum (THEORETICAL_MATERIAL_USAGE)

The Column that I have are :
MONTH | WEEK | DATE | THEORETICAL_MATERIAL_USAGE | ACTUAL_MATERIAL_USAGE | STOCK_IN_PROCESS

all the data will be generated by day except for the STOCK_IN_PROCESS.
STOCK_IN_PROCESS is only available for the closing of accounting (which is weekly and monthly)

thats why the stock in process that I want is actually the last data available within group (sorted by date) for the pivoting view.
(i mean when i see pivoting as weekly STOCK_IN_PROCESS for the calculation is only for the last day of that week, not the sum within that week. So do when i see pivoting as a monthly view)

Is there any way to do this.
As far as i know that the 'fieldname' that is used in calculated field is only showing the sum of that field by grouping (week / month).

Your help will mean a lot to me.

Thx.
 

Some videos you may like

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Watch MrExcel Video

Forum statistics

Threads
1,127,550
Messages
5,625,448
Members
416,107
Latest member
AVaes

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
Top