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 Apps
Answered

Trim - last text

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

I have the following text string

 

Text = Concat(selectedDesks, Title, ", ")

 

Desk 5, Desk 5, Desk 4, Desk 5, Desk 5, Desk 4, Desk 4, Desk 4, Desk 3, Desk 3, Desk 2, Desk 4, Desk 4, Desk 2, Desk 5, Desk 4, Desk 4, Desk 4, Desk 4, Desk 2, Desk 2, Desk 9

 

How can I get last text?

Result is Desk 9

 

Thanks.

Categories:
I have the same question (0)
  • Verified answer
    CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @kinghnvn ,

    Last(selectedDesks).Title

    Hope it helps !

  • timl Profile Picture
    36,713 Super User 2026 Season 1 on at

    @kinghnvn 

    You could maybe just try to retrieve the last value from selectedDesks like so:

    Last(selectedDesks).Title
  • kinghnvn Profile Picture
    on at

    @gabibalaban 

     

    It works fine. thanks.

    Do you know how can save last desk title to SharePoint when click on Confirm button?

    kinghnvn_0-1637335871625.png

     

  • kinghnvn Profile Picture
    on at

    yes. that's right. thank you so much!

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @kinghnvn , 

    It depends on the type of the SharePoint column you want to save the data.

    If it is a simple text, then the formula above is enough. If is a choice or a lookup column then you can use

    LookUp(Choices(TableName.ColumnName),Value=Last(selectedDesk).Title))

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
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard