This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello Power BI Helpers-
Need some help matching customer order from table 1 to customer returns from table 2.
Match needs to take into consideration the combination of two columns - Order # column and SKU # column.
Expected result is to mark in Table 1 would be shown in an additional column if the combination was found or was not found in Table #2 represented by a 1 or 0.
Example
Table 1- Order Information
| Date | Order ID | Product | SKU |
| January 1, 2025 | AL12345 | Pens | LXM_920 |
| January 2, 2025 | AL56789 | Pencils | UVX_556 |
| January 10, 2025 | AL09876 | Erasers | EDC_111 |
| January 10, 2025 | AL09876 | Erasers | EDC_113 |
Table 2 - Returns
| Date | Order Number | Product | Item ID |
| January 12, 2025 | AL12399 | Pens | LXM_920 |
| January 22, 2025 | AL56789 | Pencils | UVX_556 |
| January 15, 2025 | AL09876 | Erasers | EDC_113 |
Expceted Result
| Date | Order ID | Product | SKU | Match |
| January 1, 2025 | AL12345 | Pens | LXM_920 | 0 |
| January 2, 2025 | AL56789 | Pencils | UVX_556 | 1 |
| January 10, 2025 | AL09876 | Erasers | EDC_111 | 0 |
| January 10, 2025 | AL09876 | Erasers | EDC_113 | 1 |
Thanks in advance.
Solved! Go to Solution.
The solution is very straightforward and also scalable if more columns should be incorporated.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Thanks you so much!!
This worked perfectly.
Hello @khisla,
Can you please try this approach:
Match =
VAR Found =
LOOKUPVALUE(
'Returns'[Item ID],
'Returns'[Order Number], 'Order Information'[Order ID],
'Returns'[Item ID], 'Order Information'[SKU]
)
RETURN
IF(NOT(ISBLANK(Found)), 1, 0)
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 8 | |
| 6 | |
| 6 |