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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Calculated field with condition

(0) ShareShare
ReportReport
Posted on by

Hi 

I am creating a total calculated field to sum up the revenue fields 1-10, the conditions is set if field 1 contains data, or field 2 contains date, so on so forth to avoid input "0" into each field. However, the formula doesn't seem working and total is blank. A screenshot is provided below, does anyone know what's causing the error? 

pastedimage1603945590901v1.png

pastedimage1603945636805v2.png

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    I have tested in My Environment. If any one of the field value is null then sum of all fields would show blank.

    Since you are using OR condition in your calculated field expression which means if any one or more fields does not contains data also your Action will be executed.

    You should build you condition in such a way that field where value is null should not be considered while calculating the sum.

    You should add multiple IF/ELSE condition. Or you can use plugin/custom workflow code to calculated total.

    Please mark my answer verified if i were helpful

  • LuHao Profile Picture
    40,892 on at

    Hi Lusio,

    I would recommend you change the condition to If field 1 is great than 0, or field 2 is great than 0.

  • LC-29040809-0 Profile Picture
    on at

    Hi Lu,

    Thanks for your reply. When the opportunity is first created, the fields are blank. We are input the data onto the revenue fields where applicable and the total can be calculated even though other fields are blank. If we were to set the field as value greater than 0, we will have to fill in all other fields zero everytime, which is time consuming. And there will be revenue coems in as negative  as well. Any other way to tackle this?

    Thank you.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 192 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans