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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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€
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@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])

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@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])

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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