cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kmw1130
Post Partisan
Post Partisan

SharePoint List Calculated field, currency format

I have a calculated SharePoint field with a data type of currency.  In my PowerApp, my formulat is:

"$" & Value(Text(Parent.Default, "[$-en-US]$ 00.00")), it displays like: $68558.  It does not add a comma or the .00.

I've tried this formulat as well: "$" & Value(Text(Parent.Default,"[$-en-US]$###,##0.00")) and results are the same.

 

Is it possible to format a calculated field in PowerApps?

 

Thanks

Kim

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

@kmw1130 

 

The Value function should be on Parent.Default, not on the whole expression.
"$"&Text(Value(Parent.Default),"[$-en-US]###,##0.00")

 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

15 REPLIES 15
padminisravya
Helper I
Helper I

Hi,

Can you try using this Formula  Text(Value(Datasource,filed),"[$-en-US]$ #,###,##0")


RandyHayes
Super User
Super User

@kmw1130 

Please consider changing your Formula to the following:

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

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

@padminisravya I get formula errors.

@RandyHayes This gives me a bunch of extra 0s (68558.0000000000) and no dollar sign.

RandyHayes
Super User
Super User

@kmw1130 

This formula works well, so there is something amiss in your value.

Change your formula to Parent.Default alone.  What does it show?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

@RandyHayes 

kmw1130_0-1610983192420.png

This is a SharePoint Calculated field.

RandyHayes
Super User
Super User

@kmw1130 

What do you get when you change the formula to:

Text(18138.0000000000, "[$-en-US]$#,##0.00")

 

RandyHayes_1-1610984415687.png

 

 

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

@RandyHayes 

Is what I want, but how would I get it on the field value?  Would I need to copy it into a Text field?

kmw1130_0-1610985906101.png

 

RandyHayes
Super User
Super User

@kmw1130 

No, that was just a test to make sure you were not experiencing any language locale issues.

Your formula should be Text(Parent.Default, "$#,##0.00")

Currency columns are not special in any way except that the concept of "Currency" is for the SharePoint interface only.  IN the column, the value is still stored as a number.  It is not stored with any currency information.

The calculated column is usually somewhat problematic to PowerApps, but in this case, there should be no issue.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

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