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 / Business Rule - Set A ...
Power Apps
Answered

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,415 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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard