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 a number with t...
Power Apps
Unanswered

Format a number with thousand and decimal separator

(0) ShareShare
ReportReport
Posted on by 43

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:
I have the same question (0)
  • Verified answer
    ChrisMendoza Profile Picture
    425 on at

    @403 - Maybe something like:

    image.png

  • 403 Profile Picture
    43 on at

    Thank you @ChrisMendoza,

    It worked like a charm! 🙂

  • elkhawase Profile Picture
    50 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

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
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard