Accessing column without a primary key

aditya_glp
Participant III

Hi all,

I have 2 sheets in my backend - Orders & Products .

My Product sheet has only 3 columns - Product Name, Country & Price.

In Orders sheet, I’m storing the response of a form where I take ‘country’ and ‘product’ as an input. Now based on this input, I want to get the price of the product for the input country.

Please help me to write an expression to get the price of the correct product. Please note that the price of a product is unique for a ‘country-product’ pair. A same product is of a different price in different countries…

I have already used Lookup & Select but not getting desired result. Kinldy help!

0 3 273
3 REPLIES 3

aditya_glp
Participant III

@Aleksi Please help.

Wrote this formula but not getting desired results–

ANY(SELECT(Products[Price],CONCATENATE([Product - 1], “:”, [Country])=CONCATENATE([Product Name], “:”, [Country])))

Any(Select(Products[Price],AND(
[Product Name]=[_ThisRow].[Product Name],
[Country]=[_ThisRow].[Country])
))

To be used as the formula in Orders[Price]

Assumes you have Orders[Product Name] and Orders[Country]

Also check out - https://help.appsheet.com/en/articles/961554-dependent-dropdown

Simon@1minManager.com

Top Labels in this Space