cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nicksonteh
Advocate II
Advocate II

Creating Average from different table

Hi everyone, hope you doing well. 

May I know how can i calculate average value from a different table ? below are the example. 

In table 1, i would like to calculate the average amount from table 2 based on the supplier ID. 

nicksonteh_5-1654247556452.png

 

nicksonteh_4-1654246788896.png

Result expecting is 

nicksonteh_6-1654247642253.png

 

 

 

 

1 ACCEPTED SOLUTION

@nicksonteh 

Average =
AVERAGEX ( RELATEDTABLE ( Table1 ), Table1[Amount] )

View solution in original post

8 REPLIES 8
tamerj1
Super User
Super User

@nicksonteh 
Any relationship between tables?

@tamerj1 , 

hi, yes there is relationship between table

yes

@nicksonteh 

Average =
AVERAGEX ( RELATEDTABLE ( Table1 ), Table1[Amount] )

Hi !!!! thank you so much !!!! thanks for the answer !

DimaMD
Responsive Resident
Responsive Resident

Hi @nicksonteh  Use the same measure I gave you earlier

Hi @DimaMD , would also like to clarify that. I wanted to create a new column in the table 1 that store the average value from table 2

nicksonteh_0-1654249353291.png

 

Hi, @DimaMD , 

Thanks for replying, i have tried but not sure why it could not generate my expected result. 

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors