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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Eiji77
Helper II
Helper II

Calculation of inventory quantity

Item2020/10/312020/11/12020/12/1
Sales 5080
Purchase 7040
Inventory10012080

 

I would like to calculate the future inventory using the current month's inventory, future sales, and purchases.

(I want to calculate the part in red with DAX.)

I can use DAX's "CALCULATE" and "PREVIOUS MONTH" to calculate inventory for the next month. ([120] in the table)

However, I cannot calculate the inventory quantity for the following month. ([80] in the table)

How can I calculate the future inventory quantity?

This can be done in Excel, so I think it can be done in DAX.

 

I would be grateful if you could help me.

I'm Japanese, so I'm sorry that the English description is poor.

3 REPLIES 3
wdx223_Daniel
Super User
Super User

you can try CALCULATE and DATESINPERIOD functions.

Thank you , Daniel.

Please tell me a little more detail.

How should I use "DATESINPERIOD"?

Please tell me the description of DAX.

I'm trying while referring to the DAX reference, but it doesn't work.

I'm sorry to have you take the trouble.

Anonymous
Not applicable

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.