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 / Lookup based on Text-i...
Power Apps
Answered

Lookup based on Text-input

(0) ShareShare
ReportReport
Posted on by 8

Hi everyone,

I'm working with an excel file (Roster) and I want to auto-populate the TextLabel(Name) from the if the employee ID is typed in the Text Input(EmpID-Box).

can you please tell me what is wrong with my code?

 

Below you have the code and screenshots:

 

LookUp(Roster,'Emp ID'='EmpID-Box').'First Name'

Screenshot 2022-07-14 203923.jpg
Screenshot 2022-07-14 203828.jpg
Categories:
I have the same question (0)
  • BlessedCobba Profile Picture
    459 Super User 2024 Season 1 on at

    the code should look something more like 

     

    LookUp(Roster,'Emp ID'='EmpID-Box','First Name')
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Jbrito09 

    LookUp(Roster,'Emp ID'=Value('EmpID-Box'.Text),'First Name')

  • Jbrito09 Profile Picture
    8 on at

    @BlessedCobba thanks so much but it doesn't work.

     

  • Jbrito09 Profile Picture
    8 on at

    @Drrickryp thanks so much, it doesn't work. still not getting the first name populated. 

    see below the errors that power apps is advising:

    Screenshot 2022-07-15 163232.jpg

     

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Jbrito09 

    It seems to be saying that 'Emp ID' is text and not a number.  In that case:

    LookUp(Roster,'Emp ID'='EmpID-Box'.Text ,'First Name')  // makes them both text

    Or try LookUp(Roster,Value('Emp ID') =Value('EmpID-Box'.Text),'First Name')  //makes them both numbers

  • Jbrito09 Profile Picture
    8 on at

    Converting both as numbers works!

    thank you so much.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,041

#2
11manish Profile Picture

11manish 676

#3
Valantis Profile Picture

Valantis 655

Last 30 days Overall leaderboard