Hi,
I am working on a SharePoint List with power automate as a workflow.
I have layers of approval based on Request Type.
Say, If request type = "Add", there's only one approval,
and if request type = "Delete", there are 2 layers of approval
Now, i have a column where it computes the date/time difference between two columns like I need to get the Created date and the last Completion date of approval.
Date/Time type columns:
- Created
- Approval_CompletionDate1
- Approval_CompletionDate2
- Date/Time Difference
How do I calculate the date/time difference in power automate (like below), what is the right formula?
Date/Time Difference = If Approval_CompletionDate1 is null, Created - Approval_CompletionDate2, Created - Approval_CompletionDate1
Thanks!