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 365 | Integration, Dataverse...
Answered

Formula (Calculated field) assistance

(3) ShareShare
ReportReport
Posted on by 14
In Dynamics 365 I've created a calculated field as follows:  
 
'Probability (closeprobability)'*(Decimal('Est. revenue')/100)
 
 
This formula is intended to report a weighted sales amount based on the estimated revenue * the probability of sale.  The formula works well but it results in a whole number.  Is it possible to format the answer as currency with 0 decimal places?
 
Thank you.
Categories:
I have the same question (0)
  • Verified answer
    Daivat Vartak (v-9davar) Profile Picture
    7,835 Super User 2025 Season 2 on at
    Hello AM-14021633-0,
     
    You're on the right track with your calculated field! The reason you're getting a whole number is because you're dividing Decimal('Est. revenue') by 100, which results in a decimal value, but the calculated field then likely defaults to an integer or whole number format.
     
    Here's how to format your calculated field to display the result as currency with 0 decimal places:
    1. Adjust the Formula (Slightly):
    Instead of dividing by 100 in the formula, you can multiply by 0.01. This will achieve the same result but might provide better compatibility with currency formatting.
    Your formula should look like this:
     
    'Probability (closeprobability)' * Decimal('Est. revenue') * 0.01

    2. Set the Field Format:
    • Go to Customizations:
      • Navigate to Settings > Customizations > Customize the System.
    • Locate the Calculated Field:
      • Expand Entities > Opportunity (or the entity where your calculated field is located) > Fields.
      • Find your calculated field.
    • Edit the Field:
      • Open the calculated field.
    • Set the Field Type:
      • Ensure that the Field Type is set to Currency.
    • Set the Precision:
      • In the Format section, set the Precision to 0.
    • Save and Publish:
      • Save the field and publish your customizations.
     
    Explanation:
    • Currency Field Type: By setting the field type to "Currency," Dynamics 365 will automatically format the result as currency.
    • Precision: Setting the precision to 0 will remove the decimal places.
     
    Important Notes:
    • Data Type Compatibility: Ensure that the Est. revenue field is also a currency field or a decimal field.
    • Testing: Thoroughly test your calculated field after making these changes to ensure that it displays the correct currency format.
    • Publishing: Remember to publish your customizations after making changes to the field.
     
    By following these steps, your calculated field should display the weighted sales amount as currency with 0 decimal places.
     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more.
    If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Best Regards,
    Daivat Vartak
  • Verified answer
    Tom_Gioielli Profile Picture
    2,792 Super User 2025 Season 2 on at
    Formula fields do not yet support currency fields being used to calculate other currency fields (and formula fields do not give the option to set the field type).
     
     
    You might have better luck with a classic calculated field (which you can define as currency when creating it) and should be able to handle that calculation. Otherwise, a non-calculated field populated via workflow, cloud flow, plugin, dataflow, or some other automation would be best.
     
    If this answer helped, please consider marking as verified.

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 46 Most Valuable Professional

#2
Pallavi Phade Profile Picture

Pallavi Phade 33

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 28 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans