Help with Lookup please

I have a table called Orders. Two columns in the table are Product Code and Material Description.
I also have a table called Products with columns Product Code and Material Description (the Lookup table).
I have a drop down set up for the Product Code in Orders that works ok.
I want to lookup the chosen Product Code in the table Products to fill in the Material Description automatically into the Orders table.
I have tried
LOOKUP([_THISROW]. โ€œProduct Codeโ€,โ€œProductsโ€,โ€œProduct Codeโ€, โ€œMaterial Descriptionโ€)

LOOKUP([Product Code],โ€œProductsโ€,โ€œProduct Codeโ€,โ€œMaterial Descriptionโ€)

But neither work. Any ideas on what I am doing wrong?

0 6 368
6 REPLIES 6

@Martina
Correct syntax shall be:

LOOKUP([_THISROW].[Product Code],โ€œProductsโ€,โ€œProduct Codeโ€, โ€œMaterial Descriptionโ€)

Thank you so much. That works

I have another question about Lookups. how do I get the lookup value to update the Excel Spreadsheet?
The Material Description shows in the App but when I sync it is not in the spreadsheet.

Are you using virtual column for your LOOKUP?

Just checked and its working now. Didnโ€™t sync when I first synced. Not sure how many times it took to sync as I have synced a lot as I am building the App.

If itโ€™s a normal column with an app formula, it should need only one sync.

Top Labels in this Space