Forum Discussion

wagrezy's avatar
wagrezy
Helper I
6 years ago
Solved

Measure using columns from 2 different tables

Hi,   I have the following 2 tables - I would like to create a measure which multiply the units from Table1 with the relevant prices from Table2 (considering item and year).  I would like to do th...
  • amitchandak's avatar
    6 years ago

    Both are new column in table1

    //new column table 1 
    price tab1 = maxx(filter(table2,table1[Item]=table2[Item] && table1[year]=table2[year]),table2[Price])
    
    value = [price tab1]*[Units]