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 / How to add Numbers in ...
Power Apps
Answered

How to add Numbers in PowerApps by keeping same number of digits

(0) ShareShare
ReportReport
Posted on by 124

I have one text column containing numbers in it and i want to increment the number by 1 for the new items, but whenever i am incrementing the number, it is changing the number of digits.

 

For example:

Item 1: 0052

Item 2: 0053 

 

Now I want Item 3: 0054 but 0053+1 is returning 54 instead of 0054. How can i increment the number in string column without changing the number of digits.

Categories:
  • Verified answer
    theapurva Profile Picture
    970 Super User 2024 Season 1 on at

    hello You can use the formula as below:

    Text(yourPreviousValue+1,"0000")
    Text(11+1,"0000") //this gives output as 0012
  • uiit3155 Profile Picture
    124 on at

    I have one number field in SharePoint in which i want to store numbers of length 23 digits like 00000000000000000000023 But here also i am getting same issue and not sure where i can format the numbers similar to your response above.

  • theapurva Profile Picture
    970 Super User 2024 Season 1 on at

    Hello, If you want to store number with particular number of digits you have to have datatype as text and not number type.

     

    You can display that number type column into powerapps with 23 digits you can use the formula:

    e.g. text property of label should be as:

    Text(youNumberColumn,"0000000000000000000000000")//23 times zeros

     

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 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard