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 Platform Community / Forums / Power Apps / Character Split from f...
Power Apps
Unanswered

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,841 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

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

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard