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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Adam1125
Frequent Visitor

Average weight across tables

image.png

I have the following tables, and I need to find the average weight all the IDs sold in Table 2 based off the recorded weights stored in table 2. How do I do this?

5 REPLIES 5
waltheed
Impactful Individual
Impactful Individual

Can you explain this a bit more with some data? I do not see any recorded weights in Table2. Why is there a bi-directional crossfilter between the two?

Cheers, Edgar Walther
ITsmart BI and Analytics consultant
Anonymous
Not applicable

You could merge the two tables together into a new table in query editor. Then all the fields will be available in new table. I could be analyzing your situation incorrectly though. 

Thanks for your reply.

This is a mocked up model of what I'm trying to accomplish, and unfortunately, in my actual use case, table 2 is too large to accomodate additional columns (file size is large enough and I'm trying to keep it from growing our of control).

Hi @Adam1125,

 

Since we can't see you actual situation. Could you please share us some sample data and its corresponding expected result if possible?  Otherwise we don't know where to start.

 

And you want to find the average weight all the IDs sold in Table 2 based off the recorded weights stored in table 2. Then how could we know which IDs are sold? What's the logic to make this calculation?

 

Thanks,
Xi Jin.

Hi @v-xjiin-msft

Here's what some sample data of what the tables might look like, and what I'm trying to accomplish.

 

Sample Tables, with Average Weight of Items Sold (probably a measure I'd want to build  as a helper)Sample Tables, with Average Weight of Items Sold (probably a measure I'd want to build as a helper)Average Total Weight - the end result, with the ability to slice into  individual locations as shownAverage Total Weight - the end result, with the ability to slice into individual locations as shown

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.