Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Total of the flow field value is different from the sum of the values in the under lying table

Posted on by 11,465

Hi,

I have a strange issue, where by one detail table has a value which 17.83 and there are altogether 13 records.  I have a main table which has the sum of the above mentioned table, ideally the sum must show me 231.79, but it shows 231.82.  Any idea?  I tried keeping the Decimal Places to 2:2 in both the tables, still the same result, any idea?

*This post is locked for comments

  • Verified answer
    mmv Profile Picture
    mmv 11,465 on at
    RE: Total of the flow field value is different from the sum of the values in the under lying table

    Hi Jonathan,

    Exactly, I rounded off to 2 decimals and it worked for me.

    Thank you.

  • Verified answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Total of the flow field value is different from the sum of the values in the under lying table

    so you could use the ROUND function within the OnValidate trigger of the field or when calculating to cut the value to 2 decimals.

  • mmv Profile Picture
    mmv 11,465 on at
    RE: Total of the flow field value is different from the sum of the values in the under lying table

    Hi,

    Yes, Jonathan, the value stored is 17.832 in the SQL table, but the value displayed in the NAV table is 17.83.

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Total of the flow field value is different from the sum of the values in the under lying table

    is 17.83 a calculated value? if yes, maybe internally the real value is bigger, e.g. 17.8323... that would explain the difference. in that case you'll need to use the round function for the base values to cut the decimals after position 3.

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans