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 / Character Split from f...
Power Apps
Answered

Character Split from first to last - Canvas App

(0) ShareShare
ReportReport
Posted on 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.
 
 
Categories:
I have the same question (0)
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

     

    Try using Left/Right function

    Left(TextInput6.Text,8)

     

  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @AVTS 

    Req 1: Left("10141400000231212",8)

    Req 2: Right("10141400000231212",6)

     

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

     

  • AVTS Profile Picture
    538 on at

    It worked thank you for both your direction with solution.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard