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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Powerapps Lookup - inc...
Power Apps
Unanswered

Powerapps Lookup - incompatible types for comparison

(0) ShareShare
ReportReport
Posted on by

Good day

I have a static Excel datatable in my app and needs to look up the SBU/Department and Division fields.

janineb_0-1700072691057.png

This is an example of my datatable.  The SBU/Department field refers to the LTEXT field.  The text field of my SBU/Department has the following formula:  LookUp(HCMaster_1,EMAIL=Gallery2.Selected.Mail,LTEXT).  I do not get a error message, but the field does not look up and return the info from the datatable.  (Gallery 2 refers to the email lookup of the Nominee from Active Directory)

janineb_1-1700073250369.png

Can you please help me why I cannot get results - it seems it is a "incompatible types for comparison" error

 

Thank you

 

 

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @janineb,

     

    When using the equals operator both emails will have to match exactly. Pay close attention to capitalization or wrongly spelled emails within the static Excel list. Using the in operator instead of equals will make the query case insensitive:

    LookUp(
     HCMaster_1,
     Gallery2.Selected.Mail in EMAIL,
     LTEXT
    )

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard