web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Concatenate two ShareP...
Power Apps
Answered

Concatenate two SharePoint list columns in a dropdown

(0) ShareShare
ReportReport
Posted on by 144

Hi Team,

 

I have a SharePoint list Employee, having columns, EmployeeName and EmployeeID. In PowerApps I need to display EmployeeName and EmployeeID in a single dropdown.

 

Below is the display Format:

The dropdown should display EmployeeName and in brackets EmployeeID -> EmployeeName (EmployeeID).

 

Also, I need it in sorting order based on EmployeeName and should satisfy the condition, SystemStatus = "Pending".

Already, I have a dropdown displaying only Employee Names in sorting order. And additionally, we allow searching the dropdowns based on the text in the search box.

 

Sort(Filter(EmployeeList,StartsWith(EmployeeName,SearchBox_Ename.Text) && SystemStatus<>"Pending"),EmployeeName,Ascending)

 

 

Now, could you please help me with the same condition, but displaying with both EmployeeName and EmployeeID?

 

Thanks,

Harisha

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,051 Most Valuable Professional on at

    Hi @HarishaAkkil ,

    If you just want to display the one field in the dropdown

    Sort(
     Filter(
     AddColumns(
     EmployeeList,
     "NameID",
     EmployeeName & " (" & EmployeeID & ")"
     ),
     StartsWith(
     EmployeeName,
     SearchBox_Ename.Text
     ) && 
     SystemStatus <> "Pending"
     ),
     EmployeeName
    ).NameID

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Verified answer
    HarishaAkkil Profile Picture
    144 on at

    Thankyou @WarrenBelz. It did work for me. Thank you so much.

    The one thing in the formula is, that a comma is missing after the "NameID".

    Sort(
     Filter(
     AddColumns(
     EmployeeList,
     "NameID",
     EmployeeName & " (" & EmployeeID & ")"
     ),
     StartsWith(
     EmployeeName,
     SearchBox_Ename.Text
     ) &&
     SystemStatus <> "Pending"
     ),
     EmployeeName
    ).NameID
  • WarrenBelz Profile Picture
    153,051 Most Valuable Professional on at

    Hi @HarishaAkkil ,

    Now fixed - that tends to happen free-typing code in Notepad without the "red lines" you have to show errors.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard