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 / Create a lookup based ...
Power Apps
Answered

Create a lookup based on a Sharepoint list

(0) ShareShare
ReportReport
Posted on by 84

I have a dropdown field in my edit form which connects to a SharePoint list called BrokerAccount. The SharePoint list has two columns, 'ACCOUNTNUMBER' and 'Account Name'.

The dropdown field points to ACCOUNTNUMBER and the Data card is named DataCardValue_AccountNumber

I want to create a field which populates the 'Account Name' based on user selection of the ACCOUNTNUMBER dropdown.

I inserted a Text label, and under the Text property I inserted the following syntax:

LookUp(BrokerAccount, ACCOUNTNUMBER = DataCardValue_AccountNumber, 'Account Name')

I get an error message saying "Incompatible types for comparison. These types cannot be compared: Text, Control."

I have ensured that both fields are text fields, so I'm not sure how to proceed. Any ideas?

Categories:
I have the same question (0)
  • Verified answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @JemmaD 

     

    Try this formula

     

    LookUp(BrokerAccount, ACCOUNTNUMBER = DataCardValue_AccountNumber.Selected.Value, 'Account Name')

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard