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 Apps
Answered

return value

(0) ShareShare
ReportReport
Posted on by 4

I have a simple excel spreadsheet that has 2 columns- "vendor" and "price'. I would like to have a drop down that lets me pick a vendor and then want to have a field below that says "price" and the returns value based on that selection. how would i do that? E

 

Eventually i would like to return 3 or 4 values for each vendor. I don't really like the formatting that the gallery returns so i want to try to use display fields. 

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @HubSteel 

    Put this code in the Items property of the dropdown

    your_excel_name.Vendor

     

    Then put this code in the Text property of a label

    LookUp(your_excel_name, Vendor=Dropdown1.Selected.Vendor, Price)


    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Doug_Apicella Profile Picture
    45 on at

    Hi HubSteel,

     

    What you can do is reference datasource in the dropdown and then select your Vendor as the Value on the dropdown properties

     

    You can then use labels and reference the dropdown to get the other columns in your datasource in your label

     

    example: dropdown1.SelectedText.Price

     

    You can add as many labels as you need and reference each column as necessary. Thanks.

     

    dropdown_properties.png
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@HubSteel,

    Based on the needs you mentioned, you want to return the price value based on the dropdown selected from the vendor.

    Could you please share more about “return 3 or 4 values for each vendor”, every vendor has only one price which can not return 3 or 4 values.

    If you want to have a field below and says ”price” when picking from vendor dropdown, you can add a label and set Text property as below:

     

    "price"

     

    I have a test on my side, please take a try as below:

    • Add a dropdown, set the Items property as

     

    Distinct(Table,vendor)​

     

    • set the OnChange property as 

     

    UpdateContext({Temp:LookUp(Table1,vendor=dropdown1.Selected.Result)})​

     

    • Add a TextInput, set the Default property as 

     

    Temp.price​

     

    Best Regards,

    Qi

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 427 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