Skip to main content

Notifications

Power Apps - Building 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:
  • CU-18081211-6 Profile Picture
    CU-18081211-6 9,261 on at
    Re: Trim - last text

    @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
    kinghnvn on at
    Re: Trim - last text

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

  • kinghnvn Profile Picture
    kinghnvn on at
    Re: Trim - last text

    @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
    timl 34,525 on at
    Re: Trim - last text

    @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
    CU-18081211-6 9,261 on at
    Re: Trim - last text

    @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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard