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! Learn more

Reply
bryantmikdbi
Frequent Visitor

Beginning of Month Value using Last Month Value

Hello - I'm trying to get Beg of Month Inventory to populate based on the last month Beg of Month Inv value.  Below is a simplified version of the data and desired result.

 

Data Table:

BrandMonthIDInv U
A20210510
A20210620
A20210750
A20210840
B20210520
B20210660
B20210730
B20210810

This table is joined to a data table (below) - joined by Monthid:

MonthIDMonth
202105May
202106June
202107July
202108August
202105May
202106June
202107July
202108

August

 

Desired Result:

BrandMonthInv UBOM Ivn U
AMay10 
AJune2010
AJuly5020
AAugust4050
BMay20 
BJune6020
BJuly3060
BAugust1030

 

Basically trying to get the BOM Inv U based off the last month Inv U value.

 

Any help would be great!

1 REPLY 1
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @bryantmikdbi ,

 

 

Measure_lastmonth= CALCULATE (SUM(Inv U), PREVIOUSMONTH(TABLE_2[Month]))

 

I hope this helps.

Mark it as a solution if I answered your question.

 

 

 

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.