cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GaryBlatt
New Member

Formatting Calculated SharePoint field

I have a basic SharePoint custom list with several calculated columns, here is one of them

 CalcColumn.png

By default it shopws up in the PowerApps created screens as 12345.000000. When I add a format command such as Text(ThisItem.ProdTotal,"[$-en-US]#,###.00") it does not seem to have any effect and still displays with 6 decimal places and no thousand separator.

 

I am sure I am missing some obvious detail, but it seems to elude me at the moment. If you can correct my approach so the result is to have 12,345 instead of 12345.000000 I am open to ideas

Thanks

Gary

3 REPLIES 3
carlosag
Power Apps
Power Apps

My guess is that it is not coming to PowerApps as a number so maybe trying to call Value on it like:
Text(Value(ThisItem.ProdTotal),"[$-en-US]#,###.00")
TLA
Regular Visitor

I know this is a pretty old post, but we have a similar issue except that it depends on the browser language whether or not the calculated column is displayed correctly (EN browser language displays correctly after using the above transformation, but other language browsers still display something weird). Is there a possibility to format a number calculated column independently of the browser language? Or react on the browser language and change the format expression?

TLA
Regular Visitor

Found the solution: I needed to add the language tag to the Value function as well to ensure that the value being read is the same for German and EN browser languages and then format the value while defining the result language as well:

Text(Value(CurrentSelectedItem.'Internal',"en-US"),"[$-en-US]#,###","de-DE")

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,564)