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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
PBI_1107
Frequent Visitor

Calculation for Cumulative Schedules and Inventory

Hello Everyone,
I am stuck with a calculation where
There is Current Inventory (2G3GCurrentInv), followed by months and the Schedules that are there for the specific ID's.

PBI_1107_1-1698762279611.png

 

I want a Running total which adds the 2G3GCurrentInv along with the months Schedules and give me values something like this :

PBI_1107_2-1698762349113.png

This table is showing the result like each months Schedules added with the 2G3GCurrentInv, for the next month the currrent value plus the Next months Schedules so and so forth.

Note : There are some ID which have no Schedules for certain Months I also want to be able to return no value for those months.
Any suggestions will be great.

Thank you all for your time and consideration.

 

Best,
PBI_1107

 



1 REPLY 1
PBI_1107
Frequent Visitor

I used this DAX Query :

PBI_1107_3-1698847837837.png

 

and got this Result :

PBI_1107_2-1698847659157.png

It is adding up the Schedules from the 2g3GCurrentInv, it does not have like a running total. 
It should be like Oct 23 Inv = Sep 23 Inv + Oct Schedules, Nov 23 Inv = Oct Inv + Nov Schedules, Dec 23 Inv = Nov 23 Inv + Schedules, Jan 24 Inv = Dec 23 Inv + Jan Schedules.... and so on and so forth.
Please let me know, 

Thanks,
PBI_1107


Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.