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 / CREATE A LABEL THAT FU...
Power Apps
Unanswered

CREATE A LABEL THAT FUNCTIONS AS COUNTER

(0) ShareShare
ReportReport
Posted on by 56

I am creating an app to generate documents, and I want it to incrementally number the documents in a specific field in Word. How would I create a label or something that increments the number as I generate new entries in the app?

Categories:
  • Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    hi @Gean_ST 

     

    its a little difficult to answer because there is not a lot of details on how the app is built which makes a big difference.

     

    Are multiple people using this App and you want to make sure the Counter is different for each person, so a number cannot be used by 2 people?

     

    Are you generating Documents within the app and only 1 at a time ( a loop etc?)

     

    I would simply create a variable Set(Counter, 0);

     

    Then in whatever code you use to generate the document, after its done do:  Set(Counter, Counter +1);

     

    Do you really need a label (as in you need to see this counter number on the screen???

    If so its not the counter the variable is, and you just set the Text to Counter or Text(Counter) and bingo you see it.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Gean_ST Profile Picture
    56 on at

    @FLMike To be more specific in the label N° FORM, as you can see, there's number 00001, which I input manually. However, I want the counter to increase to 00002 every time I press the "GUARDAR" button. ill be using this app all year so i want it to save the number after i close the app

    Gean_ST_1-1707487375533.png

     

  • Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    @Gean_ST 

     

    So some things to take into account. You are showing a 0000, which wasn't mentioned before, so what is the Max number it can be and why do how many digits are you needing?

     

    Because you dont just need a counter, you need a Counter, Conversion, etc. And since you are typing in the starting point (which is the starting always 1????) or will you sometimes type in other numbers? as it impacts the answer.

     


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

     

     

  • Gean_ST Profile Picture
    56 on at

    @FLMikeBasically, I submit around 50,000 files in a year. That's why I use the 00001 format, which consists of 5 digits. And yes, the starting number is always 00001.Every year, we restart the counter to 00001. So, I need last number to persist after I close the app since it's used daily.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard