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 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

I have the same question (0)
  • Cyclefitness Profile Picture
    on at

    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

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans