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
Solved! Go to Solution.
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."
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!
Keep up to date with current events and community announcements in the Power Apps community.
A great place where you can stay up to date with community calls and interact with the speakers.
Check out the latest Community Blog from the community!