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 Automate
Unanswered

split function

(0) ShareShare
ReportReport
Posted on by 381
Spoiler (Highlight to read)
[
{
"[KPI]": 1,
"[Value]": 0.9365079365079365,
"[Goal]": 0.9
}
]

Hello. 

I can  i split the above code so it returns me just the Value of 0.9365079365079365 and to return it as 0.93650793 (9 decimal places)

I have the following code 
split(trim(split(string(outputs('Value')),':')[2]),'}')[0]

But this returns it to me as 0.9365079365079365,"[Goal]" - not sure what i am doing wrong. I just want 0.93650793

Thanks 

[{"[KPI]": 1,"[Value]": 0.9365079365079365,"[Goal]": 0.9}]Hello. I can  i split the above code so it returns me just the Value of 0.9365079365079365 and to return it as 0.93650793 (9 decimal places)I have the following code split(trim(split(string(outputs('Value')),':')[2]),'}')[0]But this returns it to me as 0.9365079365079365,"[Goal]" - not sure what i am doing wrong. I just want 0.93650793Thanks 
Categories:
I have the same question (0)
  • Chriddle Profile Picture
    8,443 Super User 2025 Season 2 on at

    With split() you convert a string into an array.

     

    Your data seems to be an array (or a JSON string that can be converted into an array with function json())

     

    Chriddle_0-1709810252612.png

    first(outputs('Compose'))['[Value]']

    Chriddle_1-1709810326100.png

     

    You can use formatNumber() to restrict the decimal places. 

  • Perumal Profile Picture
    604 on at

    You can utilize this expression to retrieve a value with precisely 9 decimal digits: 

    substring(string(outputs('Compose')[0]['[Value]']), 0, add(indexOf(string(outputs('Compose')[0]['[Value]']), '.'), 9))

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard