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!
Solved! Go to Solution.
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.
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
28 | |
27 | |
27 | |
20 | |
10 |