Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Rollup Field Wont Sum Calculated Field

Posted on by

Hi there, as i understand it, i should be able to sum a calculated field via a rollup field as long as it does not reference another calculated field. 

Within my system i have a custom table a bit like "order" which we integrate from our ERP. I have a decimal field that = quantity, i multiply that by the unit price (currency) from the related product on the order set a "total order price". (My calculated field). Both source fields for the calculation are standard dynamics fields (quantity on order and unit price on product). On the Parent entity i then want a rollup field to add all the "total order prices" (my calculated field) together. Simple right?

Why cannot i not select this field when i try to, on the definition of the rollup field? It does not appear as an option, I am nowhere near the 100 rollup limit for the system. I have tried storing the unit price value on the "order" record itself because i thought there may be an issue performing the rollup via a calculation field that references another related entity i.e. the "product" (this did not help). I also tried deleting and recreating the rollup field, did not help. Is there an unwritten rule somewhere i don't know about?

Daniel

*This post is locked for comments

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Rollup Field Wont Sum Calculated Field

    Hi Daniel,

    Based on your description, what you are trying to do is a limitation of CRM:

    "A rollup can't reference a calculated field that uses another calculated field, even if all the fields of the other calculated field are on the current entity."

    See the following TN article for more information:

    technet.microsoft.com/.../dn832103.aspx

    Hope this helps.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Rollup Field Wont Sum Calculated Field

    Hello Daniel,

    I faced same problem and i can not solve it , could you tell me if you find solution ?

    Thanks

  • Suggested answer
    PekkaSahlsten Profile Picture
    PekkaSahlsten 827 on at
    RE: Rollup Field Wont Sum Calculated Field

    Calculated fields are not stored in the database and are calculated in real-time when they are retrieved. Thus they can't be used in Rollup Field calculations.

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans