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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors