cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Coopedup
Resolver I
Resolver I

left pad text field

I have a text field that comes across as a a number 25.0000000. I don't want to show the decimal or zero's. 

 

Numbers can range from 1 - 25, so I can't use a simple Left of 2. Can I cut the text left of the decimal?

 

Thanks!
Neil 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@Coopedup 

Consider the following formula:

    Text(Value(Parent.Default))

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

3 REPLIES 3
Coopedup
Resolver I
Resolver I

So having spent way too long looking at this and deciding to post, I worked out a method. Cut the first two chars and substitute any comma with nothing. 

Substitute(Left(Parent.Default,2),".","")

 

RandyHayes
Super User III
Super User III

@Coopedup 

Consider the following formula:

    Text(Value(Parent.Default))

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

rebeccas
Super User
Super User

If it is for numbers I typically use:

 

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (77,373)