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
Niels_T
Post Patron
Post Patron

How to make a measure: Measure + Value of measure last month

Hello,

 

I tried to make the following measure:

 

Measure =

IF( EOMONTH(MAX('Calendar'[Date]),0) < EOMONTH(TODAY(),0) ,

[Stock Niveau]) + CALCULATE([Stock Niveau], PREVIOUSMONTH('Calendar'[Date]))
 
The result that I expected was if the month is above the current month, then take the original value of stock niveau of that month + the value of the stock niveau of the previous month.
 
Someone knows how to make this measure?
3 REPLIES 3
v-chenwuz-msft
Community Support
Community Support

Hi @Niels_T ,

Maybe you can try this:

 

Measure =

 

IFEOMONTH(MAX('Calendar'[Date]),0) < EOMONTH(TODAY(),0) ,

 

[Stock Niveau]) + CALCULATE([Stock Niveau]all('Calendar'[Date]),(PREVIOUSMONTH('Calendar'[Date]))
 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

amitchandak
Super User
Super User

@Niels_T , try like

IF( EOMONTH(MAX('Calendar'[Date]),0) <= EOMONTH(TODAY(),0) , [Stock Niveau] , [Stock Niveau] + CALCULATE([Stock Niveau], PREVIOUSMONTH('Calendar'[Date])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Unfortunately the measure didn't work.

 

It should start accumulating like a YTD-function, however it didn't and it gave me a number in the minus instead.

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.

Top Solution Authors