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 / Substitute only first ...
Power Apps
Answered

Substitute only first 2 instances

(0) ShareShare
ReportReport
Posted on by 204

Hi Guys,

 

I want to only Substitute the first two instances of a string. Example substitute or replace "a" with "".

 

I know how to do it for a particular instance but unsure how to do only certain instances.

 

Any help is greatly appreciated.

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    v-liwei-msft Profile Picture
    on at

    Hi @christian12 

     

    If you want to get the first few letters of a string, you can use the Left function.
    I made a test for your reference:

    vliweimsft_0-1674008867234.png

    I think this link will help you:

    Left, Mid, and Right functions in Power Apps - Power Platform | Microsoft Learn

     

    Best Regards,

    Levi

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 402

#2
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 293 Super User 2025 Season 2

Last 30 days Overall leaderboard