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 / Search and Display Fie...
Power Apps
Answered

Search and Display Fields Can't Change

(0) ShareShare
ReportReport
Posted on by 28

My formula filters the employee names that appear in the drop down based on whether or not the employee has a status of active. After that it concatenates the employee name and id and displays it as one in the drop down. But the concatenation does not work because it relies on the Display and Search fields of the drop down being ["Employee Name'] which is the added column. Instead when I try to change it, it defaults back to ["Value"]. The statement works, it is just the Display and Search fields that need to be changed. Any help? 

 

Sort( AddColumns( Filter( Choices('Attendance Tracker List'.TeamMemberID), LookUp('Employee Info', ID = Id).Status.Value = "Active"), "Employee Name", Concatenate('Employee Info'.TeamMemberName, " | ", 'Employee Info'.TeamMemberID) ), "Employee Name" )

 

kylerw_0-1686587326077.png

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,798 Super User 2026 Season 1 on at

    Hi @kylerw ,

     

    You are saying that the Items property for the ComboBox is working, but to me it seems you are trying to concatenate entire tables instead of single record values, which causes the Employee Name column to not be of a Text type. This in turn causes the behavior you described.

     

    Assuming 'Attendance Tracker List'.TeamMemberID is a LookUp colum to 'Employee Info', the below formula should work and allow you to enter the desired column name for the DisplayFields and SearchFields properties:

    Sort( 
    	AddColumns( 
    		Filter( 
    			'Employee Info',
    			Status.Value = "Active"
    		),
    		"Employee Name", 
    		Concatenate(TeamMemberName, " | ", TeamMemberID) 
    	), 
    	"Employee Name" 
    )
    

     

  • kylerw Profile Picture
    28 on at

    This works, but the names are no longer in abc order, and the function i have in "on change" has broken.

    kylerw_1-1686660773547.png

    The function makes it so the employee name is stored in a variable, and for the employee name field I have the variable automatically put the name associated with the id in. 

     

  • BCBuizer Profile Picture
    22,798 Super User 2026 Season 1 on at

    Hi @kylerw ,

     

    Can you please share what the data currently looks like to sort the sorting issue?

     

    To fix the OnChange formula, replace Selected.Value with Selected.TeamMemberID .

  • kylerw Profile Picture
    28 on at

    Thanks. The sort is being made on the Team Members ID, but should be made on the Employees Last Name. 

    kylerw_1-1686661462389.png

     

     

  • kylerw Profile Picture
    28 on at

    I just needed to change the "Employee Name" part of the sort to TeamMemberName and now the sort works correctly. But a new issue is now, the teammembers id is not being put into sharepoint list when a new entry is made. 

  • BCBuizer Profile Picture
    22,798 Super User 2026 Season 1 on at

    Hi @kylerw ,

     

    In all of your app, change DataCardValue3.Selected.Value to DataCardValue3.Selected.TeamMemberID (with special attention to the Updates Property of the DataCard for this field).

     

  • Verified answer
    kylerw Profile Picture
    28 on at

    I was actually able to figure it out by playing with the location of the filter and look ups. 

     

    Sort(AddColumns(Filter(Choices('Attendance Tracker List'.TeamMemberID),LookUp('Employee Info',ID=Id,Status.Value = "Active")), "Employee Name", (LookUp('Employee Info', ID=Id, TeamMemberName & " | " & TeamMemberID))),'Employee Name')

     

    Thank you for your help, I was having a hard time understanding how the filter function worked. 

  • BCBuizer Profile Picture
    22,798 Super User 2026 Season 1 on at

    Hi @kylerw ,

     

    Good to read you managed to get this sorted. Form a performance perspective I still recommend using the formula I posted since this puts less strain on the data source and will therefore load quicker and delegation issues are ruled out.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 385

#2
Vish WR Profile Picture

Vish WR 367

#3
timl Profile Picture

timl 340 Super User 2026 Season 1

Last 30 days Overall leaderboard