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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.