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 Apps
Answered

Counter

(0) ShareShare
ReportReport
Posted on by 89

I created a counter that is incremented by 1 each time the form is submitted, and this works fine. The problem is that if I close the app and reopen it my counter starts at 1 again.  I want it to be retain the last count and start from there regardless of how many times the app is opened/closed. What is the best way for me to retain that end value and then pick it up from there?

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,018 Most Valuable Professional on at

    To do that you have to find somewhere to save the counter when the app is closed.  If you are the only one who uses the app and its on Mobile then you can save it using SaveData and LoadData.  But those won't work on the web interface.  So if the app is used by multiple people then you will have to save the counter to some data source like Excel in OneDrive or SharePoint.  Remember that variables are stored locally, so if two people update the counter on different devices you could end up with the non-unique counter numbers.

  • Verified answer
    David8 Profile Picture
    89 on at

    Your solution worked perfectly. Thank you.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard