How to Calculate Total Amount With Empty Fields?

How to Calculate Total Amount With Empty Fields?

In this case, 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 (‐‐).

Step 1: Click on the Settings Icon and Select Advanced Settings.

Advanced Setting

Step 2: Select Settings and Click on Solutions.

Select Setting and Solution

Step 3: After that, select the appropriate solution.

select the appropriate solution

Step 4: Next, redirect to Entities → Fields and click New.

redirect to Entities

Step 5: After clicking on New, it will open a new Field Window. Give the appropriate Display name and Name, select Data Type as Currency, and Field type is Calculated, then Click on the Edit button.

open a new Field Window

Step 6: On click of the Edit button, it will redirect you to a new window named Set Est. Revenue Furniture Value.

  • Est. Revenue Furniture Value

    If Est. Revenue Furniture contains data, the result is Est. Revenue Furniture otherwise, the result is 0.

    Est. Revenue Furniture value

  • Same way for Est. Revenue Copy/Print Value

    Est. Revenue Copy_Print Value

  • Same way for Est. Revenue Supplies value

    Est. Revenue Supplies value

Step 7: Now you can create Total Est. Revenue by simply adding Est. Revenue Furniture value + Est. Revenue Copy/Print Value + Est. Revenue Supplies value

create Total Est. Revenue

Step 8: Save and Redirect to the Entity Form and Refresh it. Test the solution.

Save and Redirect to the Entity Form

 

All product and company names are trademarks™, registered® or copyright© trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.

Riddhi Faldu

Riddhi Faldu

Riddhi is a firm believer of serenity and writing is something that keeps her grounded. Being a Computer Engineer by qualification, understanding and writing about tech comes to her naturally. It wouldn't be wrong to call her diligent as she likes pushing herself and others to bring the best on table. In leisure time, she likes practicing calligraphy and wishes to master the beautiful concoction of ink and words.

Read Related Blogs About Dynamics 365 Portal

How to Clear the Cache in the Power Apps Portal

How to Clear the Cache in the Power Apps Portal

3 Min
Revolutionizing Financial Services with Dynamics 365 Customer Portal

Revolutionizing Financial Services with Dynamics 365 Customer Portal

5 Min
Why You Need D365 Developers in Your Team

Why You Need D365 Developers in Your Team

4 Min
To Top