Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Divison between two columns from different table and repetitive value.

Hi Everyone,

I need help:

I have two tables Lets say 1&2

Result i want is :

Which is like Amount= If Probill is same add Gross weight and devide it by Freight amount (250.1*90/150)

 

Any suggestion is highly appreciated.

 

2 Replies

  • Anonymous , Join both of them assume it 1 -Many from first table to second

    a new measure =

    sumx(Table2, calculate( Divide(Table2[Gross weight]* related(Table1[ Freight amount]), sumx(filter(Table2, Table2[Prodbill#] = earlier(Table2[Prodbill#]) ), [Gross weight])) ) )