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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
vkats
New Member

Average of different columns in different tables

Hello there,

 

i have 2 tables..each one has got one column that i took the average.

 

I want to have the average of these 2 columns but i cant.

 

Can you help me on this?

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @vkats 

According to your description, you want to "Average of different columns in different tables".

This is my test data:

vyueyunzhmsft_0-1687143858174.png

I created two columns to simulate the average column in your two tables.

Then we can create a measure :

Measure = var _t1 = SELECTCOLUMNS('Table1' , "Col1",[Column1])
var _t2= SELECTCOLUMNS('Table2',"Col1",[Column1])
 var _t3= UNION(_t1,_t2)
 return
 AVERAGEX(_t3,[Col1])

Then we can get the average of these two columns:

vyueyunzhmsft_1-1687143920217.png

 

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
v-yueyunzh-msft
Community Support
Community Support

Hi , @vkats 

According to your description, you want to "Average of different columns in different tables".

This is my test data:

vyueyunzhmsft_0-1687143858174.png

I created two columns to simulate the average column in your two tables.

Then we can create a measure :

Measure = var _t1 = SELECTCOLUMNS('Table1' , "Col1",[Column1])
var _t2= SELECTCOLUMNS('Table2',"Col1",[Column1])
 var _t3= UNION(_t1,_t2)
 return
 AVERAGEX(_t3,[Col1])

Then we can get the average of these two columns:

vyueyunzhmsft_1-1687143920217.png

 

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Ahmedx
Super User
Super User

Share some data to work with (in a format the can be pasted in an MS Excel file) and show the expected result.

Helpful resources

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

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