web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Incompatible type of c...
Power Apps
Answered

Incompatible type of comparison: Table, Text

(0) ShareShare
ReportReport
Posted on by 33

Hi Everyone,

I am trying a simple formula but getting this error:

Incompatible type of comparison: Table, Text

If(User_MuhammadTesting.Role = "Manager", Location_Test)

I also tried this:

If(Text(User_MuhammadTesting.Role) = "Manager", Location_Test)

&

If(User_MuhammadTesting.Role.Value = "Manager", Location_Test)

Kindly let me know where i am making the mistake. And what will be the correct formula.

My share point list is: User_MuhammadTesting and column name is: Role

Categories:
  • Sunil-Narnaware Profile Picture
    681 on at

    @Muhammad07 what is column type for 'Role'?

  • Muhammad07 Profile Picture
    33 on at

    @Sunil-Narnaware its "Single line of Text" type

  • Verified answer
    Sunil-Narnaware Profile Picture
    681 on at

    @Muhammad07 

    You are looking a record whose role is manager.. and if you get the record you want to use Location_Test..

    In order to find the record you have to do searching by following way..

     

    If(
     IsEmpty(
     LookUp(
     User_MuhammadTesting,
     Role = "Manager"
     )
     ),
     Location_Test
    )

     


    ===============

    If this helps in solving your problem, 'Accept is as Solution'. If you like, hit 👍

  • Muhammad07 Profile Picture
    33 on at

    @Sunil-Narnaware I have one more question, what if i want to check role with current user email:

    My List(User_MuhammadTesting) has following columns : Email, Role, location

    I want to verify current user email with email into User_MuhammadTesting.Email and then role with "manager".

  • Sunil-Narnaware Profile Picture
    681 on at

    just add && Email = User().Email against role comparison in above code.. so it will compare both email & role 

  • Muhammad07 Profile Picture
    33 on at

    @Sunil-Narnaware Thank you for your help. But the problem rn is I want to showup Location_Test in my combo box but in this formula its getting the USERTesting list data. Should not it be Location data?

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard