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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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
Top Kudoed Authors