The benefit of using a reference vs. an expression

Hi everyone, hope things are going well? This is just a quick and simple question relating to recommended approaches for how to structure expressions in a ‘Valid If’ column. So for this example I’m using the ‘Valid If’ to match a column entry with a list in another table. I’ve found two ways to do it,

  1. use a referenced column (in this case called ‘existing products’) with a contains expression, e.g CONTAINS([Existing Products], [Product])

  2. I skip the referenced column and just use a Select expression instead, e.g CONTAINS(SELECT(Customers[Products], [Customer] = [_THISROW].[Customer]), [_THIS])

My question is, which method is more efficient for Appsheet to process? I don’t mind either approach personally, but I would rather use the best option if possible.

Thanks for reading!

D

Solved Solved
0 4 306
1 ACCEPTED SOLUTION

Steve
Platinum 5
Platinum 5

Why are you using CONTAINS()?


View solution in original post

4 REPLIES 4

Steve
Platinum 5
Platinum 5

Why are you using CONTAINS()?


Thanks for the tip Steve, I haven’t used the IN() expression much, but I see its already better at handling ‘Valid If’ conditions and even helps in simplifying the Enum list column (it automates it, unlike the former example I provided).

Great stuff man, love this!

References are most stable , efficient and easy to use overall , and will give you a lot of other interesting oportunities to use them

Thanks for the reply OptimiX_XcrY.

Top Labels in this Space