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 / Remove last character ...
Power Apps
Answered

Remove last character when using First function

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all!

I'm trying to remove the last character in the First string in the below function without sacrificing my First function (it's a name field with the Surname first, so I am trying to swap it to the right way around but the surname has a comma at the end.

 

"Assessment of: "&Last(Split(ThisItem.'Person being Assessed'.DisplayName," ")).Result&" "&First(Split(ThisItem.'Person being Assessed'.DisplayName," ")).Result

Categories:
  • Verified answer
    mahoneypat Profile Picture
    1,720 on at

    Just Split on ", " instead of just " ".

     

    "Assessment of: "&Last(Split("LastName, FirstName",", ")).Result&" "&First(Split("LastName, FirstName",", ")).Result

     

    Regards,

    Pat

  • ArminSimon Profile Picture
    113 on at

    Hi @Anonymous ,

    try

    First(Split(First(Split(ThisItem.'Person being Assessed'.DisplayName," ")).Result,",")).Result

     

    Please click Accept as Solution so that others may find it more quickly if this post solve your problem.
    If you liked my response, please give it a Thumbs Up.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @ArminSimon @mahoneypat  thank you so much!

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard