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
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
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