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 / Help with Gallery disp...
Power Apps
Answered

Help with Gallery displaying SharePoint displayname field

(0) ShareShare
ReportReport
Posted on by 13

Due to some settings I have no control over, the SharePoint display name in my org is configured as ''Surname, FirstName (Department name)'

I would really like to just display 'FirstName Surname' for the items in my PowerApps gallery. I have looked around and found @tscott07 entry on this post, but that has only got me to the point where I am now able to display 'FirstName (Department name) Surname'. I need some help to enhance this further and remove '(Department name) please.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,528 Most Valuable Professional on at

    Hi @The1AndOnlyPJ ,

    Are these separate fields or a string

    Surname, FirstName (Department name)

    If a string

    First(
     Split(
     YourNameField,
     " ("
     )
    ).Result

     

    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.

  • The1AndOnlyPJ Profile Picture
    13 on at

    Many thanks @WarrenBelz , this has given me 'Surname, FirstName' which is a step closer, but I was hoping to be able to display 'FirstName Surname'. Is this possible?

  • Verified answer
    WarrenBelz Profile Picture
    154,528 Most Valuable Professional on at

    Hi @The1AndOnlyPJ ,

    This should work - it will help you to take a moment to understand what this is doing

    With(
     {
     wName: 
     First(
     Split(
     YourTextField,
     " ("
     )
     ).Result
     },
     Last(
     Split(
     wName,
     ", "
     )
     ).Result & 
     " " & 
     First(
     Split(
     wName,
     ", "
     )
     ).Result
    )

     

    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.

  • The1AndOnlyPJ Profile Picture
    13 on at

    @WarrenBelz That has worked a dream. Many thanks. I think I understand what is going on with this solution, just would never have got there myself!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard