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
Anonymous
Not applicable

New column group by average of a reference to a related table

I have two related tables

Table A 

Group     Person

1              2

1              5

2              4

2              9

 

Table B 

Person    Reponse 

2               100

5                125

3                300

 

I would like to create a new column in Table A which is the average response for the group they are in

Table A 

Group     Person   GroupAverage

1              2              100

1              5              100

2              4               200

2              9               200

 

 

1 REPLY 1
lbendlin
Super User
Super User

This is a standard "Filtering up"  pattern.  First you identify the parent of your element, then you calculate the result for the parent.

 

Are you sure you want this as a calculated column and not as a measure? Also, your expected outcome for both group1 and group 2 is not supported by Table B contents.

 

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.