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 / Data from SQL Datasour...
Power Apps
Unanswered

Data from SQL Datasource to Dropdown Box (Filter and Select column)

(0) ShareShare
ReportReport
Posted on by 6

If i have a Dropdown with the following items Fx: '[dbo].[tblTestes]'

It list the primary key (Code) in the dopdown.

 

tblTestes has the following columns:

Code

Name

Surname

Phone

 

How can i:

A - list the second column (Name) instead of the (Code) column

B - List the (name) column but filter all the results to a specific (Surname)

 

Thanks

 

Categories:
I have the same question (0)
  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    For the first part: open the Advanced view in the right-side pane, and under "Items", you can choose the value that will be displayed in the dropdown. By default it chose the code column, but you can change it to display what you want (in your case, 'Name'), as shown below.

    ForumPost001.PNG

     

    For the secoond part: you can filter the data source using any column. For this example, I have a text input that the user can type to filter the data based on the surname. In the code below I used the Search function, but you can use the Filter function as well.

    If(
     IsBlank(TextInput1.Text),
     '[dbo].[tblTestes]',
     Search('[dbo].[tblTestes]', TextInput1.Text, "Surname"))

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

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard