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 / Taking the value from ...
Power Apps
Answered

Taking the value from SP list and comparing it with the Associate Number in Powerapps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Afternoon! Guys. So, I am trying to show up a check in and out popup by Scanning a badge number in the text box named Associate_Number and then comparing that number with the Associate Column which is a lookup type, for another column in another list (column in that list is Badge Number -> Type is Number). But i am getting an error. Can somebody please describe what the problem could be?

 

 

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @Anonymous , What is the error message? Can you share the exact error message?

     

    Thanks,

    ANB

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The Non-Compatible types.

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @Anonymous , If Associate is of number type in SP list then try to use below code.

    Set(varAssociate,
     If(
     LookUp(
     Appointments,
     Associate = Value(Associate_Number.Text)
     ).Associate = Value(Associate_Number.Text), 
     true, 
     false
    );

     

    If Associate is single line text then use below code:

    Set(varAssociate,
     If(
     LookUp(
     Appointments,
     Associate = Associate_Number.Text
     ).Associate = Associate_Number.Text, 
     true, 
     false
    );

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Same error. Incompatible type. So, the Associate column is of type (Lookup)

  • Verified answer
    ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Can you try this:

    Set(varAssociate,
     LookUp(
     Appointments,
     Associate.Value = Associate_Number.Text, 
     true
     )
    );

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard