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 :
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,512 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

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans