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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
rafieya
Regular Visitor

Cumulative total from multiple column

Hi all,

I'm stuck with this and i can't find a solution on the spider. I have 3 tables in  each one there is a quantity (forecating production, receipt goods, inventory) and I need to forecast our inventory with the last inventory entree. so the simple formula is :

Initial inventory + receipt - forcasting production

I create a measure to find the last inventory

Stock initial:=CALCULATE(SUM(Stock[Quantité]);LASTDATE(Stock[Date]))

the another one to forecast the inventory

projection:=Stock[Stock initial]+[Total réception]-[Total prevision]

and this what i got in the pivot table

pica3.jpg

in the header row those number are week number and number of woking days, in the "projection" line I want a cumulative forecast 

any help Please

any Help please

 

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@rafieya

 

In this scenario, you want to calculate the cumulative total for that "forecast". Since your "forecast" value is from a measure, to apply calculation on these values, you have to summarize that measure into a column. So you may create a calculated table, then calculate this "cumulative forecast".

 

Regards,

Thank you @v-sihou-msft

so if I understand this how my schem must look :

schem.png

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors