Skip to main content

Notifications

Community site session details

Community site session details

Session Id : empP6sPEZduZLthxEHAS7V
Power Apps - Building Power Apps
Suggested answer

Format number in the form with thousand separator

Like (1) ShareShare
ReportReport
Posted on 25 Jul 2024 14:16:32 by 119
Hello,
 
In my app I have a gallery with several items. On the second screen I have a form that shows the item selected from the gallery.
 
In the form there are several text input fields formatted as number. After entering the value in the input field, I would like to have this value formatted with thousands separators.
 
So I inserted this in the On change property of the text input field DataCardValue: 
 
Set(varNumber2,Value(Self.Text))
 
And this into Default property of the text input field DataCardValue:
 
Text(varNumber2, "#,#")
 
This works only partially, because the problem begins when I select another item from the gallery - the values entered for the previous item remain in the fields and if I do not change them everytime I edit the item, I would have all the values for all the items the same.
 
 
Could you please advise how to change the formulas so it shows values for each item correctly and formatted with thousand separators?
 
 
Thank you very much in advance.
Categories:
  • Suggested answer
    Michael E. Gernaey Profile Picture
    42,048 Super User 2025 Season 1 on 28 Jul 2024 at 00:38:40
    Format number in the form with thousand separator
    Hi
     
    If you are using the Default you should do this
     
    Default = Text(Value(VariableOrOtherControlOrIncomingFieldOrProperty), "[$-en-US],$#,###.00")
     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 98 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 64

#3
stampcoin Profile Picture

stampcoin 48

Overall leaderboard