I am attempting to list out the stores with at least two people that have “passed” a certain training session. I’m getting an error that I cannot compare List with Number. I’m not sure how to accomplish this. If it helps, there is a ref between the Schedule table and the Stores table, but I am unsure of how to leverage that in this situation directly. Here’s the expression I have at this time:
That said, it doesn’t produce the intended results yet, but Appsheet accepts the code as valid and it will execute now. Gotta work on my logic more, I suppose.
Without the if(), I would get the error listed above about not being able to compare a list with a number, no matter how the parenthesis were configured. I tried every possible combination.
Thanks for the assist. I ended up completely changing approaches and moved the calculation of the number of course completions into the store record in Appsheet as a virtual column and that resolved the issues. I believe it was related to the fact that I had two nested select() functions and there was a need to refer back up the chain that was causing some problems.