Hello;
I'm creating an app to help keep track changes of product container, each product container has a different lot number, but will have the same name.
What I want to do is to show the lot code of the last product name that was used before replacing it for a new product container.
The table looks like this.
| product -name | lot-number |
| product1 | 1234 |
| product2 | 1235 |
| product3 | 1236 |
| product2 | 1237 |
| product1 | 1238 |
I would like to find product product2 and return on the text box the lot code that will be 1237, but my current formula just return the first record matching that name.
If(Dropdown1.Selected.Value ="Old Container",LookUp(dataSource,product-name = Dropdown2.Selected.Value,lot-number) & If(Dropdown1.Selected.Value = "New Container", ScanResult))

The search will be based on the Dropdown2 value.
Thanks for your help.