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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
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.