Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

match multiple columns to show value

Is it possible to match values in two tables to show specific values? 

In excel you can use =IFNA(ARRAYFORMULA(INDEX(xxxx,MATCH(yyyy&$zzzzz,cccc,0))),"N/A")

 

As you see in this table there is an order that haves two different SKU's

So I would need to have the logic as follows: if SKU and ORDER_NUMBER matches SKU_2 and ORDER_NUMBER_2 then show Sales Price. If I am just having a relationship between table 1[ORDER_NUMBER] and table 2[ORDER_NUMBER] I will get a total sales price for the whole order, but I need it to see the sales price per sku. 

 

Table 1:

SKUORDER_NUMBERRefundedSales Price
XXOS124D12310€ 
XXOS122D12325€ 
XXOS125D12921€ 
XXOS126D78940€ 

 

Table 2: 

SKU_2ORDER_NUMBER_2Sales Price
XXOS124D12320€
XXOS122D1235€
XXOS125D45648€
XXOS126D78960€
  • Anonymous , a New column in table 1

     

    new column = maxx(filter(Table2, table2[ORDER_NUMBER_2] = Table1[ORDER_NUMBER] && Table2[SKU_2] = Table1[SKU]),Table2[Sales Price])

1 Reply

  • Anonymous , a New column in table 1

     

    new column = maxx(filter(Table2, table2[ORDER_NUMBER_2] = Table1[ORDER_NUMBER] && Table2[SKU_2] = Table1[SKU]),Table2[Sales Price])