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 / Format a number with t...
Power Apps
Answered

Format a number with thousand and decimal separator

(0) ShareShare
ReportReport
Posted on by 49

Hello Community,

 

I'm creating a label showing a formatted number, big or small, integer or decimal.

For example, this field should show numbers like this:

100

10,000

100,000.25

 

So I used Text() formula:

Text(Number_Value, "#,#.##")

 

but I noticed that in this way the integers will get an unnecessary dot behind them,
like this:

403_1-1680819670919.png

 

Removing ".##" did not work, because it was removing the decimal places and automatically rounding the value.

403_2-1680819732683.png

 

Again, I need to format the numbers like this.
100
10,000
100,000.25
I do not want an integer to have a decimal dot behind it. But I still need a thousand separators.
How can I achieve this?

Categories:
  • Verified answer
    ChrisMendoza Profile Picture
    425 on at

    @403 - Maybe something like:

    image.png

  • 403 Profile Picture
    49 on at

    Thank you @ChrisMendoza,

    It worked like a charm! 🙂

  • elkhawase Profile Picture
    51 on at

    thanks, that helped me!

    but I was trying to understand the formula so explaining the above:

     

    t first checks if the remainder of the 'Initial TCV' divided by 1 is non-zero. If it is non-zero, it means there are decimal places in the number

    If there are decimal places, it formats the 'Initial TCV' using "#,###.##" format to display the number with two decimal places

    If there are no decimal places (i.e., the remainder of the division is zero), it formats the 'Initial TCV' using "#,###" format to display the number without decimal places.

    Also, I understand now that the reason you didn't put a complete criteria that Mod should return non zero by default

    when you use a numeric value as a condition, PowerApps automatically evaluates it as true if the value is non-zero and false if the value is zero. Therefore, you don't need to explicitly compare the result of Mod(ThisItem.'Initial TCV', 1) to zero using <> 0.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard