cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
southafrican
Frequent Visitor

Currency Format not working

Hello, 

 

I'm trying to get the selected data card to show the data in some sort of number form e.g. 123,456,789. I've put the code I believe would change the figures, but nothing seems to be happening. 

 

Does anyone have any idea of what I can do? 

 

 

Capture4.PNG

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @southafrican ,

Based on the formula you provided, I think there is something wrong with it. The second argument of the Text function is required to type a CustomFormat formula, but you typed a Currency.

 

Please consider modify your formula as below:

Set the Default property of the Budget (F19/20) Text Input box to following:

Text(displayItem.'Last Approved PLF Value (FY19/20)', "[$-en-US] ##,###")

or

Text(Value(displayItem.'Last Approved PLF Value (FY19/20)'), "[$-en-US] ##,###")

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

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

View solution in original post

6 REPLIES 6
Pstork1
Dual Super User III
Dual Super User III

The formula you are using changes the value into a formatted Text string.  But the field itself is set for Number.  So although you are transforming it to a formatted text the field is then transforming it back to a number.  I think your Text() formula is right, but it needs to be in a Text field, not a Number field.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
iAm_ManCat
Super User
Super User

Hi @southafrican

 

You're trying to use a Text value inside a number-formatted field, so it will revert whatever text changes you do to display it as a number again with the default number formatting

image.png

 

If you have decimals within that number, it will show decimals, but the default formatting is to hide decimals when there are none rather than to display .00 as you would probably expect:
image.png

 

Cheers,

ManCat

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


 


@Pstork1 wrote:

The formula you are using changes the value into a formatted Text string.  But the field itself is set for Number.  So although you are transforming it to a formatted text the field is then transforming it back to a number.  I think your Text() formula is right, but it needs to be in a Text field, not a Number field.


So I changed the format as you suggested and it doesn't seem to have done anything?


Capture5.PNG

Pstork1
Dual Super User III
Dual Super User III

Since you are using a Card you are binding it to a field. But your formula is for the Default property. So I think the default is being set correctly and then overridden by the bound value.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi @southafrican ,

Based on the formula you provided, I think there is something wrong with it. The second argument of the Text function is required to type a CustomFormat formula, but you typed a Currency.

 

Please consider modify your formula as below:

Set the Default property of the Budget (F19/20) Text Input box to following:

Text(displayItem.'Last Approved PLF Value (FY19/20)', "[$-en-US] ##,###")

or

Text(Value(displayItem.'Last Approved PLF Value (FY19/20)'), "[$-en-US] ##,###")

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

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

View solution in original post

Thank you, the change in the formula you provided worked. 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (1,582)