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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

How to find Difference between two dates in Years with calculated fields in Model Driven Apps

Ram Prakash Duraisamy Profile Picture Ram Prakash Duraisamy 2,287

Implementation Steps:

 

1. Navigate to https://make.powerapps.com

 

2. Click Solutions (if Already Available) else create a new Solution and add New Table or Existing Table

 

3. Create a new Field inside that Table (Start Date)

 image

 

4. Create another field called End Date 

 image

 

5. Save the Table

 

6. Create a Whole Number Field as Calculated

 image

 

7. Click Calculation --> It will save the table and open a Separate Tab.

 

8. Once the Page Opens add following Condition

  •    Start Date Contains Data
  •    End Date Contains Data

9. Add DIFFINYEARS (It is used to find difference between two dates)

 

10. Write below Query in the Action Field

 

DIFFINYEARS(cr2f9_startdate, cr2f9_enddate)

 

5224.png

 

11. Now add 

  • Start Date
  • End Date
  • Difference in Date 

Fields into the Form.

 

12. Open a new Record and Input Date and Click Save

 

Positive Number : (End Date is Future)

  pastedimage1649067098906v1.png

Negative Number : (End Date is Past)

 pastedimage1649067144685v2.png

 

That's it 

Comments

*This post is locked for comments