web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Business Rule - Set A ...
Power Apps
Unanswered

Business Rule - Set A Field Value for a Date to Now?

(0) ShareShare
ReportReport
Posted on by 228

I am working on a business rule to populate a "Date Completed" field when Status changes to several options.  When any of these conditions are met, I want to set the Date Completed to Now(). Can this be done?
DV Business Rules for Date Now.png

I have the same question (0)
  • Verified answer
    Mira Ghaly Profile Picture
    11,413 Moderator on at

    @cmanning 

    I would suggest you use a calculated column or a Formula column for that purpose.

     

    Calculated Columns:

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/calculated-rollup-attributes#calculated-columns

     

    Formula Columns:

    https://learn.microsoft.com/en-us/power-apps/maker/data-platform/formula-columns

     

  • cmanning Profile Picture
    228 on at

    @Mira_Ghaly - Thank you for your response and for pointing me in the right direction. 

    I created a new formula column "DateClosed" and pasted this code. 

     

     

    If(
     IssueStatus = IssueStatusChoices.'No Issue Found' Or 
     IssueStatus = IssueStatusChoices.'Outside Our Scope' Or 
     IssueStatus = IssueStatusChoices.'Requires ServiceNow Ticket' Or 
     IssueStatus = IssueStatusChoices.'User Failed to Respond' Or 
     IssueStatus = IssueStatusChoices.Cancelled Or 
     IssueStatus = IssueStatusChoices.Resolved, 
     UTCNow(),
     Blank()
    )

     

     

    When a new or existing record's IssueStatus is set to one of the choices listed in the above code, "DateClosed" will bet set to UTCNow().  Otherwise, it is set to Blank().  I have tested this and it works great!

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard