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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
dobregon
Impactful Individual
Impactful Individual

Measure of sum values from another table with relation of id and year

Hi,

 

I have a problem in the creation of measures from different tables and mixer them in the visual. As an example i have 2 tables (actuals and references) that both only can have a relation many to many (id).

 

  • Table actualsM1.JPG

     

  • Table ref
    M2.JPG

So, as you can see the table of actuals is in daly values and the ref in yearly values and related to the sames id

 

I want to create a measure in the table Actuals (because is where i have the majority of the measures and apart of that i want to create another measures using this new measure of ref annual value)

 

I know that I can use calculate to create a column in my actual table that takes the values from ref taking into account the id and year from both tables and then another measure from that new column in actuals. But i'm asking for a direct measure in actuals takt take values from the ref table.

Can someone help me on this?

 

Thanks in advance, regards!!!!

 



Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
1 ACCEPTED SOLUTION

Sorry @v-lili6-msft,

 

It seems i created 2 topics under the same thing. I have solved the problem in this link

 

https://community.powerbi.com/t5/Desktop/Measure-of-sum-values-from-another-table-with-relation-of-i...

But thanks a lot to take time to help me!
Regards!



Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

HI, @dobregon

After my research, you try to this way as below:

Step1:

Add a year column for table actuals

Step2:

Use this formula to create a measure

Measure = CALCULATE(SUM(ref[ref_annual]),FILTER(ref,ref[date] in VALUES(actuals[Year])))
Result:
2.JPG
 

Best Regards,

Lin

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

Sorry @v-lili6-msft,

 

It seems i created 2 topics under the same thing. I have solved the problem in this link

 

https://community.powerbi.com/t5/Desktop/Measure-of-sum-values-from-another-table-with-relation-of-i...

But thanks a lot to take time to help me!
Regards!



Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

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.