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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,669)