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 / Round Function in poew...
Power Apps
Answered

Round Function in poewr automate

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Dear community, I have parsed a json in power automate and then getting the value as 0.2644230769230769. However, the value should be in percentage and Round should be added. Its fairly easy in powerapps but doesnot seem easy in powerautomate. I have tried below but its failing. TIA. It fails near int function. 

if(less(length(split(string(outputs('Compose_ChangePercentage')),'.')),int(2)),int(first(split(string(outputs('Compose_ChangePercentage')),'.'))),if(less(int(last(split(string(outputs('Compose_ChangePercentage')),'.'))),int(5)),int(first(split(string(outputs('Compose_ChangePercentage')),'.'))),add(int(first(split(string(outputs('Compose_ChangePercentage')),'.'))),1)))

 

Categories:
  • tfosorciM Profile Picture
    41 on at

    It's really hard to help this way. Try to format it a bit prettier and clarify which at which int it fails.

     

    Here's a solved post with a similar issue:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Power-automate-round-up-a-float-value/td-p/1328888

     

    Best of luck!

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @tfosorciM . Achieved this using FormatNumber function.

    VaibhavKaulkar_0-1646401146555.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard