cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Way to extend decimal places?

I have a data table that is pulling from SQL server and I wanted to know if there was a way to set every column with numbers to default to 3 decimal places? Is this something I can do on the front end with powerapps or is it something I'd have to change on the backend in SQL?

 

For example the 3 there should be 3.000

Techgallagher_0-1599830809895.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver II
Resolver II

Re: Way to extend decimal places?

@Techgallagher You can select each column and adjust the text property, e.g.:

Text(
   Value(
      ThisItem.Height
   ),
   "0.000"
)

 

View solution in original post

4 REPLIES 4
Highlighted
Super User III
Super User III

Re: Way to extend decimal places?

@Techgallagher 

Best way to do this is to create a gallery instead of a data table.  Then place a label inside the gallery for each mesaurement and use this code to control the formatting.

 

Text(ThisItem.'Outer Diameter', "0.000")

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

Highlighted
Power Apps
Power Apps

Re: Way to extend decimal places?

You can select the column in the data table that you want to configure the number of decimal places, and use the Text function to determine how the data will be shown in its Text property. For example, for the first column, you can use an expression like this:

 

Text(ThisItem.'Outer Diameter', "[$-en-US]0.000")

 

The attached file shows this example. To open it, save it locally, then go to https://create.powerapps.com, then select Open -> Browse, and find the file that you saved.

Hope this helps!

Highlighted
Resolver II
Resolver II

Re: Way to extend decimal places?

@Techgallagher You can select each column and adjust the text property, e.g.:

Text(
   Value(
      ThisItem.Height
   ),
   "0.000"
)

 

View solution in original post

Highlighted
Frequent Visitor

Re: Way to extend decimal places?

Thank you, this worked! Appreciate the help!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (7,458)