Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Currency Base Field Precision

Posted on by

Hi all

I'm having an issue with multi-currency setup and a roll-up field and it's due to exchange rate conversions and the face the Base value is only being stored to 2 decimal places. I know that my problem would be solved if it was stored to 4 decimal places, but I can't seem to get it to do so. Using CRM 2016 On-Prem.

My roll-up field sums the amount value of child records. It should equal $100,000 AUD. However, the roll-up field is returning $99,999.99. This is why:

Exchange rate is 1.6426000000. When I refresh the field, CRM is obviously summing up my child fields and getting $100,000 and then populating the Base field on my parent entity by dividing it with the exchange rate, and then rounding it to 2 decimal places, giving £60,879.09. This is what I can see in the database. The local currency roll-up field is then doing the reverse and taking the base value and multiplying by the exchange rate, giving $99,999.9932 - explaining what I can see in the front-end.

If CRM was storing the base value to 4 decimal places, it would be £60,879.0941, which when multiplied by the exchange rate would give me my $100,000.00!

So, any idea how I can get the Base field for a roll-up field to store values to 4 decimal places rather than 2? I have set the roll-up field itself to be 4 decimal places and I can see that the non-base column is storing to 4, but the base continues to be just to 2... I've also tried setting currency precision on AUD and GBP to 4 decimal places but that didn't solve the issue either.

Thanks!

*This post is locked for comments

  • Verified answer
    CSF90 Profile Picture
    CSF90 on at
    RE: Currency Base Field Precision

    Fixed it - had to set my 'Amount' field on my child entity to be 4 decimal places precision!

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans