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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Forcing a comma separa...
Power Apps
Answered

Forcing a comma separator in formulas

(0) ShareShare
ReportReport
Posted on by 147

Hello,

 

My users have different location settings (probably variants between Dutch, UK and US) and this results into some mixed output and display issues within my application.

 

In the app, there's a gallery where they can enter certain values, e.g. volume and price, to calculate the price per volume, I have the following code:

 

If(
 !IsBlank(I_Volume),
 (I_Price / (I_Volume / 1000)),
 I_Price.Text
)

 

The only issue is that with different location settings, the output is sometimes with a comma decimal separator and sometimes with a dot. Having different types of output is an issue for other systems to pick up the information; it needs to be one or the other. 

 

Furthermore, when someone with the US setting makes a calculation like 500 / 18.5, it is displayed in a gallery as a rounded 27.03, for example. To them it looks lovely, the calculation is through, nothing wrong.

 

However, when someone with the Dutch region settings has a look at their upload, they are looking at a 27027027027027.... They might think there is some sort of input error or there has been a massive inflation.

 

Does anyone know how I can therefore 1) force the comma separator in the calculations and 2) force readers the same format, so US users will also see 27,03? Help would be much appreciated.

Categories:
  • uwenagel Profile Picture
    382 on at

    I guess you enter the data in TextEntries (you use I_Price.Text).

     

    Try using the Value function when using data from a TextEntry like this:

     

    Value(I_Price.text,Language())

     

    This way the data entered is always interpreted with the current language settings.

  • Daniël Profile Picture
    147 on at

    Thank you for your reply, do you know how I can test if this is working?

  • uwenagel Profile Picture
    382 on at

    Instead of getting the language automatically by Language() you could specifically set the language for testing.

     

    For instance if you enter the value in english form (14.5) you could try 

    Value(I_Price.Text,"en-gb")

    which should return a valid number.

    If you enter 14,5 (german notation) this will probably give an error or some unreasonable value. However if then try Value(T_Price.Text,"de-DE") this will again be reasonable.

     

    So, getting the current Language settings by Language() as in my previous post should always return a reasonable value if the value entered in the text box is in the right language format.

  • Verified answer
    Daniël Profile Picture
    147 on at

    Unfortunately these functions, to my usage, were only able to force the reading of a certain separator, but were unable to force them tin the creation.

     

    However, I restructured the app and Sharepoint to work with a number instead of a text column and that has solved the issue. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard