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 is not performing calculation if 2 field contain value it dose not perform calculation only work when all field contain value

(0) ShareShare
ReportReport
Posted on by 365

In the Calculated field, this Calculation is not performing like I expected it's only calculated when all field contains a value and I want when 1 or more field contains value it shows its total value.   Could anyone can help me with this

pastedimage1618808953124v1.png

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi partner,

    One option is to populate these fields to 0 using Business Rules.

    http://www.marksgroup.net/blog/dynamics-365-using-business-rules-set-default-values/

    Go Setting > Customizations > Customize the system > Entities to select one entity you need, then create one business rule.

    pastedimage1618885898759v1.png

    Then use ‘Set default value’ action to set all fields you need value to 0, which will make number field is 0 for new records.

    pastedimage1618886063646v2.png

    Active the business rule and publish, then test it.

    When creating a new record, the number1 field is null if condition are not met, the number1 field is 0 if condition are met.

    pastedimage1618886743224v3.png pastedimage1618886848555v4.png

    Note: For existing records, the number field can't be changed.

    pastedimage1618886907323v5.png

    So you can run a background workflow to set existing null values to 0 or export all records and re import after setting it to 0 in excel or excel online.

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Suggested answer
    CRMJetty Profile Picture
    3,514 on at

    Hello,

    The users have three currency fields for recording expected revenue in three different areas.

    • Est. Revenue Furniture
    • Est. Revenue Copy/Print
    • Est. Revenue Supplies

    None of the fields are required.

    We need the calculated field called Total Est. Revenue, which is pretty easy to make. But if you add the three fields together, it will only show a result if all three fields have a value. If just one of them is blank, the result will appear empty

    Pls refer this detailed Blog to calculate field amount

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hii unbeatable,

    In this case, Do not you think you need to rewrite the logic of a calculated column similar to the below:

    1. If column 1 contains data and column 2 column contains data and column 3 contains data
      1. column 1 + column 2 + column 3
    2. Else if column 1 contains data and column 2 column contains data
      1. column 1 + column 2
    3. If column 1 contains data and column 3 contains data
      1. column 1 column 3
    4. If column 2 column contains data and column 3 contains data
      1. column 2 + column 3
    5. else
      1. 0

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 37

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans