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 / How to bind key and va...
Power Apps
Answered

How to bind key and value to dropdown from data source ?

(0) ShareShare
ReportReport
Posted on by 73
Currently I am binding direct text values to drop downs using to dropdowns items attribute : Distinct('SQLTablename',ColumnName) This binds ColumnNames to both value and text. I need for eg. "ID" as value and "ColumnName" as text. Can anyone help me with this ?
Categories:
  • Verified answer
    v-sheyu-msft Profile Picture
    Microsoft Employee on at

    Hi @SudhirSingare,

     

    Do you want to display the values in dropdown control ?

     

    Distinct('SQLTablename',ColumnName)  can only return the values of the specified column.

     

    I made a test.

    19.PNG

    when you want "ID" as value and “ColumnName” as Text , you can set Items property of dropdown control to :

    Filter('[dbo].[SQLTablename]',column1="1")

    Under Value property of dropdown control ,you can choose the column name you want to display.

     

    If you want to display 'ID' column values , you can set Items property of dropdown control to :

    Filter('[dbo].[SQLTablename]',column1="1").ID

    Regards,

    Eason

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard