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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.


Go to My LinkedIn Page


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.


Go to My LinkedIn Page


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.


Go to My LinkedIn Page


Thank you so much anyway! 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors