Showing results for 
Search instead for 
Did you mean: 
Resolver I
Resolver I

Referencing combobox selecteditems in If statement

Hi all


I'm trying to set the visibility on a data table column with an If statement based on what is selected in a combobox.

The following seemed logical, but doesn't work, and throws up a warning:







Oddly, it will work if I add an Or operator and second If statement referencing another combobox (with the true and else values of the second IF statement reversed):




In case you're wondering, I have checked that I'm referencing the comboboxes the right way around 😉


Any ideas?



@yashag2255 Thanks! I'm not sure what is going on. I tried the IF statement again as you suggested when I posted on Tuesday, and got the result you can see in that post.

Today, I try again, and got the desired result. Perhaps I had a typo...


Thank you! 

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!


Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (84,975)