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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.