web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Format text for currency
Power Apps
Answered

Format text for currency

(1) ShareShare
ReportReport
Posted on by 402

I am formatting a value to display as currency (USD) using Text(ThisItem.SubmittedAmount,"$#,###.##").  However, if a value is a whole number, like 80, it shows as $80. without the 00.  How can I format the regex to show that 00, or is it a matter of the underlying sharepoint column property.

Categories:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @iskguy ,

    try this code:

    Text(ThisItem.SubmittedAmount, "$#,###.00")
  • iskguy Profile Picture
    402 on at

    I did and get the same

    iskguy_0-1720612708407.png

     

  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    @iskguy ,

    If the previous approach didn't work, you can ensure the number always shows two decimal places by using a more explicit formatting approach

     

    Text(ThisItem.SubmittedAmount, "$#,###.00")

     

    If this still doesn't work as expected, you can use an If statement to handle cases where the value is a whole number and append .00 manually. Here's how you can do it:

     

    If(
     RoundDown(ThisItem.SubmittedAmount, 0) = ThisItem.SubmittedAmount,
     "$" & Text(ThisItem.SubmittedAmount, "#,###") & ".00",
     Text(ThisItem.SubmittedAmount, "$#,###.00")
    )

     

  • Verified answer
    rzuber Profile Picture
    545 Moderator on at

    [EDIT]

    Deleted because the next answer is the most likely fix for this issue where the user's value is a text value instead of a number value.

  • Verified answer
    rzuber Profile Picture
    545 Moderator on at

    Or:

     

    Text(Value(ThisItem.SubmittedAmount), "$#,###.00")

     

     

    I suspect this is your issue because when you use Text() on numbers that are encased in text, you do not get the proper format. You need to convert the text to a number value to get the proper format.

     

  • iskguy Profile Picture
    402 on at

    Thanks!  This one seems to work actually!

  • rzuber Profile Picture
    545 Moderator on at

    @iskguy Did you accept the correct solution? I deleted that one because I tested it, and got the same result you kept getting, so I posted the second response.. Did the first one actually work, or was it actually the second one? I'm now confused.🙂

  • iskguy Profile Picture
    402 on at

    This one worked: 

    Text(Value(ThisItem.SubmittedAmount), "#,###.00")
  • rzuber Profile Picture
    545 Moderator on at

    @iskguy OK great! I was hoping that was the case. No longer confused. I hope all your future issues are this easy to solve.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 408

#2
WarrenBelz Profile Picture

WarrenBelz 382 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 328 Super User 2025 Season 2

Last 30 days Overall leaderboard