cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jobender
Microsoft
Microsoft

PowerApps Issue... showing a currency field as a currency and not a number

I have a PowerApp that is showing four currency fields from the Common Data Service as numbers with no commas or currency signs...

 

PowerApp1.png

 

Within the common data service the fields are registered as currency...

 

Common Data Service.png

 

So in PowerApps, I formatted the Text property of the Data field to Text(Parent.Default,"[$-en-US]$ #,###") as per the instructions at https://powerapps.microsoft.com/en-us/tutorials/function-text/ ...

 

PowerApp Edit.png

 

 

However this does nothing to the field in the actual UI and I am still left with unformatted fields as referenced above.

 

This appears to be a bug.  Can anyone else confirm that they are seeing the same issue?  If not, how were you able to resolve this?

1 ACCEPTED SOLUTION

Accepted Solutions
AndyPennell
Power Apps
Power Apps

I would surmise that those fields are being delivered into PA as strings, not numbers, which is why attempts to format them as numbers fail. Try wrapping the field in the Value() function to turn it from a string into a number, then format that.

View solution in original post

3 REPLIES 3
AndyPennell
Power Apps
Power Apps

I would surmise that those fields are being delivered into PA as strings, not numbers, which is why attempts to format them as numbers fail. Try wrapping the field in the Value() function to turn it from a string into a number, then format that.

View solution in original post

v-micsh-msft
Community Support
Community Support

Hi @jobender,

 

Try this:

Text(Value(Parent.Default),"[$-en-US]$ #,###")

See:

60.PNG

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the insight, that formula did the trick.

 

 

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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