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 / Gallery saving old val...
Power Apps
Unanswered

Gallery saving old values when using CLEAR formula (issue)

(0) ShareShare
ReportReport
Posted on by 104

All,

 

I am creating a timesheet that is a gallery in PowerApps. This gallery is connected to a collection for collecting data. My clear/remove button code is 

 

Clear(collectionTest2); Set(RC, 0);

 

aishak12_2-1639663925604.png

 

However every time I click clear when data is filled in Hours it does not go away. So If I Add rows back all the new rows have "40" in Total. 

 

My Total Calculation is the only field to have this problem all other fields (Project, Phase,Task, Labor Code, Mon, Tue, Wed, Thu, Fri) reset perfectly fine without keeping old values. 


 

 

 

 

 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @aishak12 

    You will need to Reset that control in your gallery.

    Set the Reset property of the controls you want to reset to:  yourClearButtonName.Pressed

    It will then reset them when the button is clicked.

     

    I hope this is helpful for 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

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard