Skip to main content

Notifications

Community site session details

Community site session details

Session Id : vF42tbV+/IETXhVD2r0ABI
Power Apps - Building Power Apps
Unanswered

Enable comma or dot as decimal separator

Like (1) ShareShare
ReportReport
Posted on 14 Jul 2023 18:41:02 by 4

Hi guys, hope you are doing well.

I'm having some issues with an app where the client sometimes puts commas and dots to define decimals but when it puts a dot, the number multiplies or something like that. 
I've searched several forums and solutions but none of them worked for me.

 

In my specific case, I need that the field on the table can take commas and dots as decimals whenever the user puts there.

 

I can't modify the data type or do anything else(or at least it escapes my knowledge).

Fedepuszko_0-1689358751481.png

 

I've also tried the text() function without success.

 

 

To demonstrate the issue, on the first case with comma it works well, but on the second when I put 100.5, the field is completed with 10.050,00. We need that it works the same as a comma.

Fedepuszko_1-1689359086927.png

 

 

 

 

Do you have any idea if this is possible in this instance? 
Thanks in advance.

 

Categories:
  • jfranciscose Profile Picture
    9 on 24 Jun 2024 at 23:45:24
    Re: Enable comma or dot as decimal separator

    How did you solve it?

  • Fedepuszko Profile Picture
    4 on 17 Jul 2023 at 12:41:00
    Re: Enable comma or dot as decimal separator

    Hi @PowerNuggets 
    THanks for your response. I forget to mention that both option, dots and commas must be usable.

    I'll keep trying alternatives. Thanks!

  • PowerNuggets Profile Picture
    360 on 15 Jul 2023 at 05:45:52
    Re: Enable comma or dot as decimal separator

    Hi @Fedepuszko 

     

    I believe the Decimal separator character is dependent on language. some regions of the world use "." as a decimal separator while others use ","

     

    You can try Text to change the format

     

    or

     

    Substitute(Number; ","; ".")

     

    more on the subject from this article
    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/operators

     


    _____________________________________________________________________________________
    Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.

     

    KR,

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,776 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard
Loading started