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 / Use of People Field
Power Apps
Answered

Use of People Field

(1) ShareShare
ReportReport
Posted on by 1,265
I have a column in my SharePoint list where I select a "Person or Group".  In my case it is a Person as shown in the 1st pic.  I only want to display the Last Name; however, when I select "Last name" (as shown in the 2nd pic) I still receive the entire name.
 
 
 
Am I doing something wrong or can I set up another column to extract the Last name from the initial Person information?
 
Categories:
I have the same question (0)
  • Suggested answer
    EE-04041031-0 Profile Picture
    106 on at

    You can't directly extract just the last name from a "Person or Group" column in SharePoint views. The field always displays the full name. To show only the last name, create a separate calculated column or do the transformation in Power Apps or Power Automate.

     

    Power Apps solution:

    Use this formula to extract last name:
    Last(Split(ThisItem.Person.DisplayName, " "))
     

    Power Automate or calculated column option:

    Use a flow or calculated column with a formula like:

    =RIGHT([Person],LEN([Person])-FIND(" ",[Person]))
     

  • stampcoin Profile Picture
    5,153 Super User 2026 Season 1 on at
    @RJF61 Hi,
    According to your screenshot, you selected Name for the 'Show field' but not Last name.
    can you double check that ? 
  • RJF61 Profile Picture
    1,265 on at
     
    Actually, I did change after I sent the email.  The Last name does display in SharePoint as expected but in the PowerApp the full name still is displayed.
     
    Thanks
  • RJF61 Profile Picture
    1,265 on at
     
    So I'm not totally clear on your options...
     
    Is this option used as the "Text" in a Text Label?

    Power Apps solution:
    Use this formula to extract last name:
    Last(Split(ThisItem.Person.DisplayName, " "))
     

    Is the following for a calculated column in the SharePoint list?

    Power Automate or calculated column option:
    Use a flow or calculated column with a formula like:

    =RIGHT([Person],LEN([Person])-FIND(" ",[Person]))

  • EE-04041031-0 Profile Picture
    106 on at
    @RJF61  Yes, you’ll need to create a new Single line of text column in your SharePoint list called “Last Name”.

    In your Canvas app, extract the last name from the selected Person field like this:
    Last(Split(PersonCard.Selected.DisplayName, " "))
     

    When the form is submitted, the extracted last name will be saved to the new column in your SharePoint list.


     
  • RJF61 Profile Picture
    1,265 on at
     
    I do.  The SharePoint "Person" column is titled PMMgr.
  • Suggested answer
    w.p Profile Picture
    8,345 Super User 2026 Season 1 on at
    The first and last name aren't available through the SharePoint connector in Power Apps.
    You can use the Office365Users connector to retrieve the last name.
     
     
     
     
  • RJF61 Profile Picture
    1,265 on at
     
    I created the additional SP field.  Where does this PowerApp action occur?
  • Suggested answer
    EE-04041031-0 Profile Picture
    106 on at
     
    Use of People Field
    @RJF61  Great, since the sharepoint person column doesn't reflect other fields, you can create a new text column and patch the selected last name directly, follow these steps:
     
    1. Steps to Save Only the Last Name from a Person Field in SharePoint via Power Apps:

    2.  

    3. Create a Single line of text column in SharePoint called "Last Name".

    4. In Power Apps, add the "Last Name" data card to your form.

    5. Set the Text Input’s Default to: Last(Split(PersonDropdown.Selected.DisplayName, " "))
       

    6. On form submit, the last name will be saved to SharePoint.

  • RJF61 Profile Picture
    1,265 on at
     
    This is not working in my PowerApp.  I receive errors with...
     
    Last(Split(DataCardValue7.Selected.DisplayName," "))
     or
    Last(Split(PMMgr.Selected.DisplayName," "))

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard