web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Convert decimal to whole in calculated field

(0) ShareShare
ReportReport
Posted on by
Hello,
 
I created a calculated field of type date time.
the role of the field is to add years (from a field called seniority) to a field called joining date.
but the seniority field is of type decimal. The AddYears() function in the calculated field takes only a whole number.
Is there a way to convert a seniority to whole number before using it in the function ADDYEARS()?
 
I have the same question (0)
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    Hi Partner,
     
    Yes, ADDDAYS () function must take whole number.
    You need convert decimal to whole type, but it can't be achieved in calculated field directly.
     
    You should create another whole number field to get integer from original decimal field, then you need use new created whole number field in the calculated field.
    --Using power automate to convert them:

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 74

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans