web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Help with function

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

 

I need help with a string function.  I have a variable for example 1.2.0 and i want to convert that string to 1.20  In Excel i would just use the Substitute function but with PA I only see a replace function which works but it allows me to replace all occurences of the '.' not certain instances?  How would i go about doing this?

 

Thanks in advance!

Categories:
I have the same question (0)
  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at
    Re: Help with function

    Try this expression:

    concat(split('1.2.0', '.')[0], '.', join(skip(split('1.2.0', '.'),1), ''))

    You could replace the hard coded 1.2.0 with the output of a compose action or a variable.

  • Community Power Platform Member Profile Picture
    on at
    Re: Help with function

    @Paulie78 Thank you!  This worked perfectly.

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard