The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have two tables as this (example):
in table2 I want to lookup for the order number based on comparing the customer number and product number:
I tried something like this, but did not work:
If[custemer number] = tabel1(customer number) and [product number] = tabel1[product number], tabel1[order number], blank)
Solved! Go to Solution.
You can follow the steps below without writing any code.
1. Click table2, then click the meger queries button
2. Hold down ctrl and click the columns that need to be matched, then select the table table1 that needs to be matched below, then hold down ctrl and click the columns that need to be matched (note that the order of clicks must correspond to the previous columns), and then click the OK button.
3. expand the required columns
Thank you very much ZhangKun
You can follow the steps below without writing any code.
1. Click table2, then click the meger queries button
2. Hold down ctrl and click the columns that need to be matched, then select the table table1 that needs to be matched below, then hold down ctrl and click the columns that need to be matched (note that the order of clicks must correspond to the previous columns), and then click the OK button.
3. expand the required columns