web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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)
  • 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))

  • kinghnvn Profile Picture
    on at

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

  • 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

     

  • timl Profile Picture
    36,558 Super User 2025 Season 2 on at

    @kinghnvn 

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

    Last(selectedDesks).Title
  • Verified answer
    CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @kinghnvn ,

    Last(selectedDesks).Title

    Hope it helps !

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 401

#2
WarrenBelz Profile Picture

WarrenBelz 334 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard