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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Average of two columns from different tables,without access to model

Hello world, 
I have a huge issue of calculating an average based on two different columns. 
I thought using this calc,

 

AVGof 2 cols =
AVERAGEX(
	ADDCOLUMNS(
		SUMMARIZE(
			'<tablename>'
			,'<tablename>'[Table 1]
			,'<tablename>'[Table 2]
		)
		"ND1" , [Number of Days]
	)
	, [ND1]
)

 

but Table2 is in another tablename (let's name it table name 2). so I cannot use summarize, as it is taking only a single tablename.
I also tried allexcept, but yet it didn't work. 
This is the data along with the result,any help would be appreciated.

Tablename 1Tablename 2Tablename 1 Result
NameWorkDays  
VSBook0 2
VSBook1 2
VSBook2 2
VSBook3 2
VSBook4 2
VSShow0 0.5
VSShow1 0.5
VSSwim0 0.5
VSSwim1 0.5
VIBook0 4
VIBook8 4
VIShow0 2.66
VIShow1 2.66
VIShow7 2.66
VISwim0 0
TVBook0 5.33
TVBook1 5.33
TVBook15 5.33
TVShow0 0



 

6 REPLIES 6
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

I wonder what 'Tablename 1' and 'Tablename 2' are like and the relationships between tables.

Best Regards

Allan

Anonymous
Not applicable

eventually these are 2 dim tables that are connected through a fact table.

vanessafvg
Super User
Super User

how is the data related to each other from the two tables





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

I guess (as I have no direct access to the model itself) that it is a many to many relationship using a bridge table.
Thanks @vanessafvg 

does this old thread help at all?

 

https://community.powerbi.com/t5/Desktop/Combining-2-tables-and-Summarize/td-p/255606





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Well, as you can see on my sample calculation I tried to use summarize, but the command accepts columns from 1 table, and my 2 columns are in 2 different tables, so I don't think it helps somehow (or in a way that I can think of, pretty new in PBI)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.