• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Consumed Before Expiry & Expired

Hello,

I have a table with monthly demand and another table with stocks and their expiry dates. Demand can be satisfied with stocks that have not expired. the output needed is to show the good stocks that are consumed and stocks that expire separately. If demand is more than stock, the consumption will be to extent of goods stocks, after deducting all stocks expired in prior periods. For simplicity, all stocks expire on the last day of the month, and demand is shown on the first day of the month.

I have set an example in excel as attached (output required as per the table named OutputTabhlighted in Green). i am trying to get this output with PowerPivot. Can someone help, please.
 

Attachments

  • ConsumeBeforeExpiry.xlsx
    189.2 KB · Views: 4
Back
Top