Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to make sum of two different type of field while using calculated field?

Posted on by 515

Hello,

I have two fields, one with Decimal number type and another with Floating point number type, I want to create a calculated field that will have sum of first and second field. Firstly when I tried to create calculated field by choosing floating point number as field type, it didn't allowed me to create calculated field, secondly while I select decimal number, it shown only Decimal type fields in formula section. So what is proper way to do so?

Regards,

Ashish

*This post is locked for comments

  • Verified answer
    Indika Abayarathne Profile Picture
    Indika Abayarathne 671 on at
    RE: How to make sum of two different type of field while using calculated field?

    1) You cannot have any calculated fields for flaoting point values.

    2) It allows only one type to be in your formula.

    Try to use JS or any plugin acheive it. You can trigger the plugin at the time of saving the record.

  • Verified answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: How to make sum of two different type of field while using calculated field?

    Hi Ashish,

    Floating Point cannot be used with calculated fields, so that would mean that if you need a calculated numerical field that is not a whole number, you need to use decimal.

  • Ashish Moradiya Profile Picture
    Ashish Moradiya 515 on at
    RE: How to make sum of two different type of field while using calculated field?

    Hello,

    I need some way using workflow or plugin, as I am not always using forms to enter data.

    Regards,

    Ashish

  • Verified answer
    RE: How to make sum of two different type of field while using calculated field?

    Hi Ashish,

    If your requirement is to sum the two field value and show result on a third field then you can try with below link

    https://community.dynamics.com/crm/b/edwardsdnadynamicscrm/archive/2013/06/04/javascript-calculate-two-fields

    Thanks 

    Nilanka Sekhar Paul

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans