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
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 (2,977)