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 / Patching currency valu...
Power Apps
Answered

Patching currency value in a different format

(0) ShareShare
ReportReport
Posted on by 2
Good day all,
 
I have an interesting question. I have a Power App wherein is a form with currency values. The user can edit the currency values, and submit the form to save the data. The app is built in Dutch, where the currency format would be along the lines of "€##.###,##". However, as Power Apps does, the data is saved in the different format "##,###.##". Therefore, it is difficult for me to make it user-friendly.
 
The question is as follows; I want to allow the users to type in the Dutch format, with thousands separated by . or nothing at all, and cents to be separated by a comma (,). When it comes time to save to the database, I want the system to convert it to the other format, so it can be saved as it should be, without errors. Currently, I have the input still using the database format, and I display a label which shows the user the Dutch format.
I also have an automatic formula that calculates a total amount from the inputted currency values earlier. I would like to keep this included as well. In the attachments I hope you can find more clarity.
 
Kind regards.
 
UPDATE:
I seem to have figured it out. By keeping the Default values of each datacard intact, and instead using the Value property of each input control, I can substitute the decimals like so: Substitute(Text(Value(Parent.Default)), ".", ","). I can then, upon the user changing it, use UpdateContext and a variable to internally change the value back to a number with the decimal in the correct place like so: Value(Substitute(Text(Self.Value),",",".")). Now, I can do the calculation proper, and once the user wishes to save, the Update property of each datacard will look as such: Value(Substitute(DataCardValue.Value, ",", ".")). It will now properly convert the text back to the format that is acceptable for the database (Dataverse in this instance), and it will save it.

In conclusion, using the above properties, the user can type a Dutch currency value such as "125,50", and once they hit save, it will be converted to "125.50" instead, and saved.
Categories:

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,136 Most Valuable Professional on at
    The data is saved in the Data Source (assuming SharePoint or Dataverse) as a simple number and the local settings of the user's device. The users should always input it (in Edit/New Mode) as a number (only decimal seperator) - and it will display it the same unless you have a View-only label with something like
    Text(YourField, "#.###,##", "nl-NL")
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  

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 740 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard