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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (59,304)