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 / Format Number without ...
Power Automate
Unanswered

Format Number without Rounding Up

(1) ShareShare
ReportReport
Posted on by 61

Hi All

 

I am using a flow to update peoples ages in a sharepoint list based on their date of birth. The flow is working out their ages fine with decimal places, however I need to save these down to the list as a whole number but when I use any format number rules it rounds any with a decimal over 5 to the number above (as is the standard) but I need it to not do this as if someone is 21.6 years old they are still 21 and not 22

 

Thanks

Laura

Categories:
I have the same question (0)
  • Verified answer
    Chriddle Profile Picture
    8,416 Super User 2025 Season 2 on at

    Just substract 0.5 from the number:

    formatNumber(sub(item(), 0.5), '#')
  • abm abm Profile Picture
    32,858 Most Valuable Professional on at

    Hi @LauraGrimes123 

     

    What formula you applying to get the decimal format? Can't you workout from the Current Year minus Date of Birth which will give you the age? For this you need to use expression like below.

    sub(formatDateTime(utcNow(), 'yyyy'),formatDateTime('DateOfBirthColumnHere','yyyy'))

     

    Thanks

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