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
faiqsadiq1
Frequent Visitor

Stock at end of Month

Hi . I hope you would be fine .I need to find Stock at end of the month and its formula is stock of beginning of month+ shipment that month-forecast.Stock of beginning of month is unrestricted + Transit and Transfer in 1st picture,Shipment that month is production completion date(Its quantity) + 1 Week and Subtract forecast from it.


Can any one help me on it.I am unable to find result.


 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @faiqsadiq1 ,

 

Please share some sample data in text format and expected result so that we could test formulas.

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
NikhilChenna
Skilled Sharer
Skilled Sharer

Hi @faiqsadiq1 ,
I think can use below logic and write the measure ,

Var a
Add the 2 column unrestricted + Transit and Transfer


Var stockofbeginningofmonth=
CALCULATE(
          SUM(a),
          DATEADD('Date Dimension'[date],-1,MONTH)
)

var sforcast = SUM(forcast)

Var shipmentthatmonth = create a calculation for this production completion date(Its quantity) + 1 Week and Subtract forecast

RETURN 
( stockofbeginningofmonth + shipmentthatmonth ) - sforcast 

Regards,
Nikhil Chenna

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

Hi Nikhil,
It didnt went well .Inventory trend is not showing ok results.
Or I guess i am unable to communicate

Anonymous
Not applicable

Hi @faiqsadiq1 ,

 

Please share some sample data in text format and expected result so that we could test formulas.

 

Best Regards,

Jay

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.