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 Platform Community / Forums / Power Automate / Flow Calculation Round...
Power Automate
Unanswered

Flow Calculation Round up/down

(0) ShareShare
ReportReport
Posted on by 114

I have the expression below to calculate a percentage;

 

mul(div(float(Actual),float(Budget)),float('100'))

This successfully returns a figure of 28.2

 

How can I round this number up or down? e.g if 2.8.2 round down to 28, or if 28.8 round up to 29.

 

The number varies, it's not always 28!

Categories:
I have the same question (0)
  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @jonboylib ,

    please follow these steps:

    1. Initialize a Float variable in which put your output (in my case, I've put manually a number):

    MarconettiMarco_0-1659625359473.png

    2. Initialize a String variable putting the following expression:

    formatNumber(variables('varRound'),'#0')

    MarconettiMarco_1-1659625442922.png

     

    Here my output:

    MarconettiMarco_2-1659625511110.png

    So, my number is rounded down, but the same logic is applied for rounding up.

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    BR,

    Marco

     

     

  • jonboylib Profile Picture
    114 on at

    Can I not add the calculation into the formatNumber?

    formatNumber(variables('varRound'),'#0')
    formatNumber(variables(mul(div(float(Actual),float(Budget)),float('100'))),'#0')

     

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard