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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mizaskun
Helper II
Helper II

Sum values of a join relation

Good morning,

 

I have the following tables:

 

CarValue
A2
B1

 

and 

CarRegion
AUSA
AINDIA
BINDIA

 

I have related the tables through the Car field. 

 

I am trying to get the sum of every resulting line from the join, but I am getting just the sum of the cars table.

 

The measure gives 3 as a result, but should give 5. And it is calculated like this: 

Medida = SUMX(Cars, Cars[Value])
 
CarValueRegion
A2USA
A2INDIA
B1INDIA
 5 
 
How should I achieve this? 
 
Thank you so much!
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @mizaskun 

Please try the below.

The link to the sample pbix file is down below.

 

Picture4.png

 

Values Total =
SUMX( Regions, RELATED(Cars[Value]))
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi, @mizaskun 

Please try the below.

The link to the sample pbix file is down below.

 

Picture4.png

 

Values Total =
SUMX( Regions, RELATED(Cars[Value]))
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Good afternoon,

 

This is not working on a many to many relation. How should I achieve that average with a many to many relationship? 

 

Thank you so much! 

Hi, @mizaskun 

thank you for your feedback.

Sorry that I am not familiar with how many to many relationship works.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you so much anyway! 

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.