cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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:

 

IF_statement.JPG

 

 

 

IF_statement_1_play.JPG

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):

IF_statement_2.JPG

IF_statement_2_play.JPG

 

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

 

Any ideas?

 

10 REPLIES 10

@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

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

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

Top Solution Authors
Top Kudoed Authors
Users online (25,589)