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 / SP Calculated Column S...
Power Apps
Answered

SP Calculated Column Switch First-Last Name

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator

I've got a SharePoint list that is pulling in data from another source.

One of the columns is 'ManagerName' and is formatted LastName/FirstName, and appears as 'Schmoe, Joe'.

Can I create a SP calculated column that will transpose the above to 'Joe Schmoe' AND be able to pull that data into a Power Apps Label or Text Input?

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

    Hi @Phineas ,

    Please avoid SharePoint calculated columns - they simply do not "play well" with Power Apps. You can do the calculation in Power Apps with

    Last(
     Split(
     ThisItem.ManagerName,
     ", "
     )
    ).Result & " " & 
    First(
     Split(
     ThisItem.ManagerNam,
     ", "
     )
    ).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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Phineas Profile Picture
    5,331 Moderator on at

    I'm using a LookUp to Label1.Text to pull in the original text 'Schmoe, Joe'.

    If I create another label (Label2.Text) and add your formula the names are reversed as desired.

    Can this be achieved as part of the LookUp in Label1.Text, rather than needing to create another Label for the reverse code?

    My LookUp is - 
    LookUp('List1', FullName = UserNameFld.Text,ManagerName)

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

    Hi @Phineas ,

    This should do it

    With(
     {
     wManager:
     LookUp(
     'List1', 
     FullName = UserNameFld.Text
     ).ManagerName
     },
     Last(
     Split(
     wManager,
     ", "
     )
     ).Result & " " & 
     First(
     Split(
     wManager,
     ", "
     )
     ).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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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