Hi,
Here is my scenario in a model driven app with a Dataverse table.
There is a Choice column in Table A called FoodType. User has the option to pick one of three choices: Fruit, Fruit & Veggies, Veggies from the global choice/optionset called FoodTypeCategoryOptions. The corresponding number values are 1001,1002,1003.
There is second column - a formula column (preview feature) on the same table A named FoodAction, in which I want to implement the following example logic:
If( 'Food Type'= 1001, "F", 'Food Type'= 1002, "FV", 'Food Type'= 1003, "V")
Receiving the following error on the evaluative portion of a simple expression like: If('FoodType'= 1001, "F", "Empty")
Incompatible types for comparison. These types can't be compared :
OptionSetValue(global_cr123_foodtypecategoryoptions), Value.
Note: cr123 is the publisher in this solution.
Need help with the appropriate syntax for extracting and referencing the selected Value and Text values, stored in the FoodType column. I can then use the true/false result in second part of an IF or Switch statement.
It is probably something obvious, but I can't find the right answer in google searches and chatGPT.
thanks in advance!