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
Frequent 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
Frequent 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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,672)