Skip to main content
Community site session details

Community site session details

Session Id : kH4QkwxuvlMg4d2PzcpXoM
Power Apps - Building Power Apps
Answered

Character Split from first to last - Canvas App

Like (0) ShareShare
ReportReport
Posted on 24 May 2021 19:49:33 by 538

Team,

 

I would like to split two types of string from following number.

 

10141400000231212
 
Requirement 1 :
 
First 8 digit.
 
Requirement 2 :
 
Last 6 Digit
 
Current formula.
 
For first req :
(Last(FirstN(Split(TextInput6.Text, "000"),1)).Result)
For Second req :
 
With({_dt: Last(FirstN(Split(TextInput6.Text, "000"),2)).Result },
Date(2000 + Value(Right(_dt, 2)), Value(Mid(_dt, 3, 2)), Value(Left(_dt, 2)))
)
 
Issue i am facing with above code is if suppose 000 is coming in first 8 digit then only first 6 characters are coming.
Example : 101414
 
Expected : 10141400
 
same issue happening in last 8 digit also.
 
 
  • AVTS Profile Picture
    538 on 25 May 2021 at 07:51:21
    Re: Character Split from first to last - Canvas App

    It worked thank you for both your direction with solution.

  • Verified answer
    rubin_boer Profile Picture
    4,841 Super User 2024 Season 1 on 24 May 2021 at 20:46:40
    Re: Character Split from first to last - Canvas App

    hi @AVTS 

    Req 1: Left("10141400000231212",8)

    Req 2: Right("10141400000231212",6)

     

    replace the string with the control, e.g. Right(TextInput6.Text,6)

     

  • Verified answer
    TheRobRush Profile Picture
    11,121 Moderator on 24 May 2021 at 20:41:16
    Re: Character Split from first to last - Canvas App

     

    Try using Left/Right function

    Left(TextInput6.Text,8)

     

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Loading complete