Hi, I want to set a value in combobox based on text in DataCardValue19. Then I write a formula to DefaultSelectedItems on my combobox DataCardValue5:
Filter(Choices(Shortages.CFT),Text(Value)=If(StartsWith(DataCardValue19.Text,"V")||DataCardValue19.Text="NPA"||DataCardValue19.Text="NFA","Vestas"))
this is works, but when I want to add additional conditions I get error: "This predicate is a literal value and does not reference the input table" e.g. for this formula:
Filter(Choices(Shortages.CFT),Text(Value)=If(StartsWith(DataCardValue19.Text,"V")||DataCardValue19.Text="NPA"||DataCardValue19.Text="NFA","Vestas"),If(StartsWith(DataCardValue19.Text,"H"),"Magna"))
Combobox has got choice datatype in dataverse.
previously i tried to set DefaultSelectedItems with condition but then the value from DataCardValue5 was not writing to dataverse, here link to topic: https://powerusers.microsoft.com/t5/Building-Power-Apps/Problem-with-save-data-from-combobox/td-p/1420759
Please for help @timl @RandyHayes @WarrenBelz @AJ_Z @Pstork1 @BCLS776