Forum Discussion

Adam1125's avatar
Adam1125
Frequent Visitor
8 years ago

Average weight across tables

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

  • Anonymous's avatar
    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. 

    • Adam1125's avatar
      Adam1125
      Frequent Visitor

      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).

      • v-xjiin-msft's avatar
        v-xjiin-msft
        Icon for Solution Sage rankSolution Sage

        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.

  • waltheed's avatar
    waltheed
    Icon for Impactful Individual rankImpactful 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?