Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Cumulative computation between dates

Hello all,

 

I'm having some troubles on forecasting when a given material is going to have obsolencence problems.

 

This is the data I have:

First, I have a table with the actual stock and the obsolencence date for each material:

Material codeObsolencence dateActual stock
00125-07-2022          2.300.000
00224-06-2022        14.502.000
00312-09-2022                21.530
00402-06-2022          4.845.623
00504-09-2022          2.312.451
00607-12-2022                   1.545

 

Second, I have another table with the forecasted consumtions on each date for each material:

Material codeQuantity to be consumptedDate
0015018-03-2022
00210018-03-2022
00315018-03-2022
00510018-03-2022
00640018-03-2022
00135018-03-2022
00615218-03-2022
00362019-03-2022
00560019-03-2022
00223519-03-2022
006154520-03-2022
001362520-03-2022
00615020-03-2022
00625020-03-2022
00535021-03-2022
00615021-03-2022
00526521-03-2022
00632121-03-2022
00589021-03-2022

 

So I'm having troubles on computing the sum of forecasted consumptions for each material before each obsolescence date.

 

As an example of material 001, would be all lines that matches material code 001 and is always before the obsolescence date:

jgm1984_0-1647495213936.png

 

Does anybody know hoy could I compute this, please?

 

Thanks a lot in advance.

 

 

 

2 REPLIES 2
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Anonymous
Not applicable

Just did. Thanks for the advice 🙂 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.