cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnjohn123
Super User
Super User

Incompatible type for comparison. These types can not be compared : Table , Text

I have a combo box  field, and i am trying to check if it has a selected value of certain text, as follow:-

 

inc.png

 

but i am getting this error:-

 

Incompatible type for comparison. These types can not be compared : Table , Text

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
BCLS776
Super User
Super User

DataCardValue56.SelectedItems.Value is a table and you're testing its equivalence to a string - that's a type mismatch.

Instead, try:

If("Other (Access required ports, protocols, etc...)" in DataCardValue56.SelectedItems.Value,
    DisplayMode.Edit,
    DisplayMode.Disabled
)

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
BCLS776
Super User
Super User

DataCardValue56.SelectedItems.Value is a table and you're testing its equivalence to a string - that's a type mismatch.

Instead, try:

If("Other (Access required ports, protocols, etc...)" in DataCardValue56.SelectedItems.Value,
    DisplayMode.Edit,
    DisplayMode.Disabled
)

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,423)