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
SEZA
New Member

Adding one value from one measure to all elements of another measure

Hi,

I need help to solve the following problem. I have created 2 measures (M1 and M2). I would like to create another measure (Result) where I can add the last value of M2 (value from year 2011) to all the values of M1 (starting from 2012).  My desired result would be "Result" but I get the "Bad-Result" as final result which I gained from simply doing:

[M1] + [M2]

 

If I have a simple value e.g. 2 the above formula works: 2 + [M1] gives me: 7 ,9 , 5, 6 starting from year 2012. But this doesn't work if I add up 2 measures.

 

Please help. Thank you in advance.

 

 

 

Power Bi question.jpg

2 REPLIES 2
wdx223_Daniel
Super User
Super User

@SEZA Years in the row comes from Date Table

wdx223_Daniel_0-1607041551556.png

 

amitchandak
Super User
Super User

@SEZA , Try a measure like

 


measure =
var _max = maxx(filter(values(Table[Year]), not(isblank([M2]))), Table[Year])
return
calculate([M2], filter(all(Table), Table[Year] =_max)) +[M1]

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

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!

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