cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
benniwoessner
Regular Visitor

decimal place

Hope you can help me i got a sharepoint list with different (automatic calculated values) for example like in the picture Score Department or IT. No i got a form which only shows them but it must be like "1.0" not "1.00000000000000" in the sharepoint list its normal written like "1.0" please help me how can i delete these decimal places in my powerapp? If I use:

Round(Value(Parent.Default),0)

 

 It only deletes the point and then its "3125000000" and not anymore "3,125000000" I dont get it.

Unbenannt.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @benniwoessner,

 

I agree with @Drrickryp's thought almost. I have made a test on my side, please take a try with the following workaround:

 

Set the Text property of the Label control to following formula:

Text(Value(Parent.Default),"[$-en-US]#.0")

 

More details about Text function in PowerApps, please check the following article:

Text function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
timl
Super User
Super User

Hi @benniwoessner

 

For display purposes, you can format numbers using syntax like this:

 

Text(Value(Parent.Default), "#.##")

The formula above would format the number to 2 decimal places.

Timi is correct but that syntax will not force two decimal places.  In other words, 2.20 would look like 2.2.  If you want to force two digits use 

Text(Value(Parent.Default), "#.00")

 

v-xida-msft
Community Support
Community Support

Hi @benniwoessner,

 

I agree with @Drrickryp's thought almost. I have made a test on my side, please take a try with the following workaround:

 

Set the Text property of the Label control to following formula:

Text(Value(Parent.Default),"[$-en-US]#.0")

 

More details about Text function in PowerApps, please check the following article:

Text function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

Thank you very much! This solution helped me solve this problem!

Thanks, this worked for me
Steve77
Regular Visitor

Hi, I have been having this issue today, found all the posts here not working, I had Calculated column with zero decimal places, but the power app would not pick up on it. I finally worked it out - don't know how, guessed it really. But it works. 

 

Steve77_0-1636481710897.png

My column is called In_Stock.

 

Hope this sorts your issue out too.

Pstork1
Dual Super User III
Dual Super User III

Please post this as a new item.  It will get more attention and others will be able to find the solution easier.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,376)