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 / App- remember the prev...
Power Apps
Unanswered

App- remember the previous value of a field and used to current record

(0) ShareShare
ReportReport
Posted on by 159

I need to build an app that will manage the activities of specific people.

 

Once a day , each user will fill in the application how many orders and invoices resolve in a day. Everything seems simple to do, except for the part that must be retained where the total value from the previous day, which must be added to the current record. To exemplify I have attached what the application should look like.

 

The calculation formulas are as follows: Total in is the sum of the remaining orders from the previous day plus the orders entered today (Total in = Remaining from yesterday + In) . Initial  Remaining from yesterday is zero. Remaining has the calculation formula Total In-Solved. 

 

I don't know how to manage the value from the previous day (remaining from yesterday). Remaining from yesterday will be an read only field.

I have to use the value of Remaining in the next day's record  Remaining from yesterday . Practically the field Remaining from yesterday will have the value of field Remaining from previous record of user.

 

Thank you

Hope someone will understand

 

 

Each type of activity is managed separately (invoices, orders, etc.)

Capture.JPG
Categories:
I have the same question (0)
  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    I am going to presume the Remaining from yesterday is a field in your data source?   If not you will need to add it.  Power Apps doesn't retain anything between uses.   So you have to have that data somewhere it can get it for the user.

     

    In your App OnStart, do a lookup for the current user to get the value of 'Remaining from Yesterday' and store it in a variable to use when needed.

  • ciprianpopovici Profile Picture
    159 on at

    It's already a  field in my data source (SharePoint list).Can you give some example of code to use to lookup for the value of the field  'Remaining from Yesterday' for current user? I'm not sure how to do it. Thank you

     

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    You can do this:  Replace SPColumn with the name of the column that contains your user email address

     

    Set(varRemaining, LookUp(SharePointList, SPColumn = User().Email).'Remaining from yesterday')

     

  • ciprianpopovici Profile Picture
    159 on at

    I will try your solution and come back with feedback. Thanks

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 413

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
timl Profile Picture

timl 315 Super User 2026 Season 1

Last 30 days Overall leaderboard