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 / Referencing Field (Col...
Power Apps
Answered

Referencing Field (Column) Values

(0) ShareShare
ReportReport
Posted on by 11

Years of progrmming experience - Days with PowerApps...

I would like to access the column values inside Data Table using the Drop Down (selected) as an index. Here's what I came up:

LookUp('[dbo].[Well]', 'WellID' = Dropdown_WellID.Selected.Value).Longitude

The comparison fails because the left side ('WellID') is a number, while the right side Dropdown_WellID.Selected.Value is text. So I tried:

LookUp('[dbo].[Well]', 'WellID' = Value(Dropdown_WellID.Selected.Value)).Longitude

Compiles without error. I set this as the default value of another text input. Start the app and no display.

I put the same code in the following code under the OnChange event for the drop down... still no display.

UPDATE: Change the lookup column from ID to Name because the selected value is the Name: LookUp('[dbo].[Well]', 'WellID' = Value(Dropdown_WellID.Selected.Value)).Longitude

Thanks in advance

Categories:
I have the same question (0)
  • Verified answer
    SJ-15052312-0 Profile Picture
    418 on at

    Hi, 

     

    I am able to do this.  Under the advance tab, my drop down looks like the below:

    cap1.PNG

    If yours is the same, you should not have to worry about using value() function.

    I have created an text input object and set the the Default property to the below:

    LookUp('[dbo].[attendees]', Dropdown1.Selected.peopleId = 'peopleId').legalFirstName

    There should not be a need to have something in the onChange property.  Can you confirm you are comparing on the same column?  Below you seem to state it should be comparing on the name column but is using the "WellId" column.


    UPDATE: Change the lookup column from ID to Name because the selected value is the Name: LookUp('[dbo].[Well]', 'WellID' = Value(Dropdown_WellID.Selected.Value)).Longitude

    Thanks in advance


     

     

     

  • Bobby_Wallace Profile Picture
    11 on at
    Thank you!

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 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard