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 / How to change format t...
Power Apps
Answered

How to change format text without decimal

(0) ShareShare
ReportReport
Posted on by 42

Good evening everyone,
I would like in my PowerApps application to be able to change the display of "DistanceParcourue" so that there is no number behind the comma.
This data comes from a SP list and a calculated value column of type number with decimal places set to 0.
I tried several things like:
Text(Substitue(ThisItem.DistanceParcourue;".";",");"#")

or

Text(Substitue(ThisItem.DistanceParcourue;"."";"",");"#")

or

Text(Substitue(ThisItem.DistanceParcourue;"."#))
or
Text (Parent.Default; "[$ - fr] #")


But nothing helps.

Thank you for your help.

2021-01-11_16h37_44.jpg
Categories:
  • Coopedup Profile Picture
    355 on at

    Try this....I have the same situation and get the number with lots of 0000000's without it.

    Text(Value(Parent.Default))

     

  • timl Profile Picture
    37,409 Super User 2026 Season 2 on at

    Hi @FJA The reason for this is the combination of using a calculated column, along with a French locale where semi-colon is the decimal separator, rather than a comma.

    There are more details here.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/change-the-number-of-decimals-for-a-number/m-p/674626

     

    In addition to @Coopedup's advice, you can also try using the Round function.

    Round(
     Value(ThisItem.DistanceParcourue),
     2
    )

     

  • FJA Profile Picture
    42 on at

    Hi @timl 

    Thanks for your help.

    But it doesn't work (see joined picture) 😢

     

    Thanks to you and have a good day

    2021-01-12_08h05_16.jpg
  • FJA Profile Picture
    42 on at

    Hi @Coopedup , 

    Thaks for your help.

    But your solution doesn't work. (see the joined picture).

    indeed, if I put this function, I no longer have any result displayed

     

    Thanks and have a good day

    2021-01-12_08h09_31.jpg
  • _Nils_ Profile Picture
    71 on at

    Hi @FJA 

    I don't know if it helps, but in the German version ";" ist used to separate elements instead of ",". Perhaps it's similar in the French version as well. Using @timl's code maybe this change works then:

    Round(
     Value(ThisItem.DistanceParcourue);
     2
    )

     

  • FJA Profile Picture
    42 on at

    Hi @_Nils_ 

    Thanks for your help.

    I have the same result as with the function of @timl (see joined picture).

     

    Have a good day

    2021-01-12_08h56_21.jpg
  • _Nils_ Profile Picture
    71 on at

    Hi @FJA 

    it actually seems like it works. It looks like you don't have an error any more but a result of "0" instead.

    What is the actual number behind ThisItem.DistanceParcourue? Maybe the number is so small that the Round function rounds it down to 0.

     

  • FJA Profile Picture
    42 on at

    @_Nils_ 

    I must have 80 as a result

    This column is a claculated column : KMarrivee-KMdepart

    2021-01-12_09h15_19.jpg
  • _Nils_ Profile Picture
    71 on at

    @FJA 

    okay, an what is the actual number stored in the SP list for ThisItem.DistanceParcourue?

  • FJA Profile Picture
    42 on at

    @_Nils_ 

    In SP list, the number stored is 80

     

    I I will restart my app

    2021-01-12_09h19_34.jpg

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 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard