Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Calculated fields and null values

(0) ShareShare
ReportReport
Posted on by

The Dynamics constraint that will not allow a calculated field to calculate if any of the fields in its formula have a null value is causing me quite the issue.  

I had business rules set at the scope of form level to set to 0 if null, but that doesn't seem to be working consistently with imported records.  So, I tried changing the scope to "entity" thinking it would be a database-level default.  But, again, it isn't updating the value on records that already exist which were imported.   

So ... I did a google search and came upon a post to create a calculated field for each field in the formula which will set the value to 0 if null, then use those in the formula.  So ... it would look like this:

Calculated Total $ = (Calculated Unit $ * Calculated # Units)

However, my Calculated Total is used in rollups on two other entities.  Dynamics will not allow this.

How else can I solve this?

*This post is locked for comments

  • Cyclefitness Profile Picture
    Cyclefitness on at
    RE: Calculated fields and null values

    To re-summarize:

    • An "entity" level business rule which states; "If field is null, set to 0" is not setting the field to 0 when retrieving the record.  What triggers this update?
    • A Calculated Field using calculated fields as factors, isn't available to use in a rollup field.  Could this be because the SourceTypeMask attribute is wrong?  The calculated field is not referencing anything other than calculated fields on the same entity.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans