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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Formatting a number wi...
Power Apps
Answered

Formatting a number with a comma (#,###)

(0) ShareShare
ReportReport
Posted on by 383

I have tried the following:

 

Text(Gallery_R_EQ_ShoppingCart.Selected.Title,"#,#")

 

This is on the Default property of a field to show a selected gallery item field named Title.

 

 

Categories:
I have the same question (0)
  • Verified answer
    mmollet Profile Picture
    3,187 on at

    Text(Gallery_R_EQ_ShoppingCart.Selected.Title,"0,0##")

    or

    Text(Value(Gallery_R_EQ_ShoppingCart.Selected.Title),"0,0##")

     

    This will depend on the data type of your Title column. If it is number then use the first one and if it is text then use the second one. Also for the formatting I used, the 0's will show a 0 if there is no number in that place and the #'s will only show a number if there is a non-zero number in that position.

     

    Ex1: 12.1252 -> 12.125

    Ex2: .9836     -> 0.984

    Ex3: 6            -> 6.0

  • Kirsten2 Profile Picture
    383 on at

    Thank you!

  • Kirsten2 Profile Picture
    383 on at

    Sorry, I just noticed for numbers that are below 1,000 it puts commas too.

     

    Example: 789

    Becomes: 0,789

     

    Is there a way to fix that?

  • Verified answer
    Kirsten2 Profile Picture
    383 on at

    I got the solution:

     

    Text(Value(Gallery_R_EQ_ShoppingCart.Selected.Title),"#,#")

  • mmollet Profile Picture
    3,187 on at
    Text(Value(TextInput4_1.Text), "##,##0.0#")
     
    This will add commas to separate 3 digits and will always show a decimal of at least .0
    Your Example should show up as 789.0 now and if you add another 9 to the end it should display 7,899.0. If you dont want the 0's then replace the 0's with #'s in the formula. A leading 0 placeholder is usually nice as it helps users see the decimal point and know the value is less than 1. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard