Hi There, I have a list of products with categories and prices.
Ex: Product A, Have Type 1 ($5) and Type 2 ($7)
I am trying to make the invoice and have been stuck on the lookup price value, what I wanna do is so easy in excel because I can make a helper column like this one https://trumpexcel.com/vlookup-with-multiple-criteria/. Is there a way to do it in Appsheet?
In my Invoice form, the user needs to choose the product, and the type then the price will automatically fill in with the corresponding price.
Products table, which contains information about the product but not it’s price
Types table, here you list the types available for each product along with the corresponding price.
Invoices table, where the users are filling the invoice form. This table should have the following columns:
“productID” column, Ref to “Products” table: where the users will have a list of products to select from.
“typeID” column, Ref to “Types” table: here the users should see a list of types related only to the selected product. For this:
Suggested Values, and Valid IF fields would have this expression:
SELECT( Types[typeID], [productID] = [_THISROW].[productID] )
Additionally, you can even display this formula field only when the product is selected, using this expression as a condition in the “Show?” field: ISNOTBLANK([productID])
“Price”, that is shown to the user when the Type is selected: