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
Dual Super User

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.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

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

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.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

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.

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

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (1,905)