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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.