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 / Save date when Status ...
Power Apps
Unanswered

Save date when Status was changed

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone, how you doing? 

I am mading a Power App for Maintenance Orders and I need to save date and hour when the status changed to "in progress" I tryied a simple formula If(type="In progress";Now()) but when I change the status to "Closed" the start progress date in Excel DB is cleaned. I need to save both hours and dates (in different columns obviously) to know how mutch time the technician spend in the order. 

 

 

Categories:
  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    Hi @Anonymous ,

    You need two date/time fields - Start time and End Time. On The OnChange of your Status drop-down, put

    Switch(
     Self.Selected.Value,
     "In Progress",
     Patch(
     YourListName,
     ThisItem,
     {YourStartDateTime:Now()},
     ),
     "Completed",
     Patch(
     YourListName,
     ThisItem,
     {YourEndDateTime:Now()},
     )
    )
    

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    Hi @Anonymous ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard