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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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