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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

assigning ending inventory of current month as beginning inventory as a next month

i need to assign ending inventory of current month as beginning inventory as a next month. i have write a measure to calculate it.here as measure:(the problem is probably i have used all values as a measure and i want to calculate next month from previous month but it is row based calculation. it can not tranfer the value because of this)

beginning =
VAR currentMonth =
SUM ( 'table[Total stock] )
VAR nextMonth =
CALCULATE (
SUM('table[Total stock])+[dumb order]
FILTER (
ALL( dates ),MONTH ( dates[Month] )
= MONTH ( SELECTEDVALUE ( dates[Month] ) ) + 1
)
)
RETURN
currentMonth+nextMonth
1 ACCEPTED SOLUTION
daXtreme
Solution Sage
Solution Sage

Hi @Anonymous 

 

If you use the Search box on this page above and type something like "inventory," you'll find a lot of solved problems like this. One potential solution would be:

 

Solved: Inventory Stock_Balance and cost calculation_DAX - Microsoft Power BI Community

View solution in original post

1 REPLY 1
daXtreme
Solution Sage
Solution Sage

Hi @Anonymous 

 

If you use the Search box on this page above and type something like "inventory," you'll find a lot of solved problems like this. One potential solution would be:

 

Solved: Inventory Stock_Balance and cost calculation_DAX - Microsoft Power BI Community

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.