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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Cumulative substraction

Hello, I am trying to apply a cumulative amount but I have problems with Power Query.


In first table X_Previsionnel, I have the quantity (column need) that will be consumed for each of my articles. I go up to 3 days in the future (we don’t care about quantities in the past, that’s the delay)
In second table X_Stock_Metal, I have the status of my stocks of the day before, for each of my 7 articles.

 

I would like to calculate a forecast stock, from the previous day’s stock and subtract the needs corresponding to each item for my current day. Then start from this new level of stock and subtract the needs of tomorrow (always for each of my articles), and the same for the day after tomorrow.

 

 

Thanks for your help!

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors