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 / 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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 531 Most Valuable Professional

#2
Haque Profile Picture

Haque 261

#3
Kalathiya Profile Picture

Kalathiya 221 Super User 2026 Season 1

Last 30 days Overall leaderboard