You need to sign in to do that
Don't have an account?
Skeeter
Currently, my formula populates the field but nulls it out when the status is change to anything else.
Formula to calculate duration in specific status
IF( ISPICKVAL(Status,'Not Started'), NOW() -CreatedDate,null)I'm trying to create a formula on the task that will calculate how long a task has been in the status of not started and keep that information when the status changes.
Currently, my formula populates the field but nulls it out when the status is change to anything else.
Note: This solution has two assumptions:
SOLUTION
- Create a number field (e.g. aux__c) with predefined value = 0.
- Workflow rule on task with following criteria (triggered each time the record is updated).
- Field update of the workflows, update aux__c field:
- Update your formula:
When the task is created with Not Started status, your formula will show now()-createdDate. Then, when the status changes, the workflow will update the aux__c with the duration of the status, and the formula will show its value :D