web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Currency field precisi...
Power Apps
Suggested Answer

Currency field precision - set stored precision different from formatted decimal place

(1) ShareShare
ReportReport
Posted on by 323 Super User 2024 Season 1
Hi guys,
 
Have a very very annoying issues:
 
I use custom model driven app to generate sales related pricing.
 
Customer has an excel spreadsheet to double check the price. Customer is not IT professionals so their excel spreadsheet does not round currency calculation, it will store currency up to the maximum decimal place allowed inside Excel.
 
Model driven app on dataverse has a set currency precision decimal place, however this is VERY VERY limited:
 
If i set precision place to 2, after all the business process calculation happens in my model driven app, the total price that we present to the customer has a large difference => up to 2.0, this starting to get significant
 
If i set precision place to 4, this will significant improve the calculation accuracy, however every single field and grid in my model driven app will become un-readable: too many digits it's very user unfriendly!
 
I cannot simply find a solution that allow me to define different currency decimal places for STORED value and DISPLAYED value, any how can this be achieved?
I have the same question (0)
  • RyanAutomates Profile Picture
    139 on at
    Hi there,
     
    Could you provide more information on how you're actually bringing the data into Dataverse? Is it a manual upload? Are you trying to bring it in using Power Automate? Are there any data transformations occurring? 
    Have you checked that the maths being performed is correct and what you'd expect to see at each stage of the calculations?
     
  • steeevid Profile Picture
    323 Super User 2024 Season 1 on at
    Hi Ryan,
     
    I input the field using my manual input on the form / Javascript / Power Automate.
     
    This is not an import process, its a day to day usage scenario. I put in 1.7777 into the field, it became 1.78, that's fine, but i still need it to store 1.7777 behind the scene!
  • Suggested answer
    RyanAutomates Profile Picture
    139 on at
    Hi Steve,
     
    Ah I see.
     
    I've actually run into this problem before. I don't think we ever found the root cause of the problem, something Microsoft-y. The way that we got around it in the end was to do all the calculations with the precise values in JavaScript (or Azure Function for more complex scenarios) and fill in the earliest field in the calculation chain that would provide the correct answers with fields using precision 2.
     
    Sometimes, we used hidden fields to do precise "ugly" calculations in the background and then put a field visible to show the "pretty" answer.
     
    I wonder if you can do this using the new PowerFx calculated fields using the exact values and then display the pretty values in one go....
     
    Hope this helps! :)
  • steeevid Profile Picture
    323 Super User 2024 Season 1 on at
    I really dont understand why microsoft deleted the old forum, this forum is as dead as it can be and very f ing hard to use.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard