Display the result of a calculation between two fields in a column

To add this column to a task view:

  1. Go to a list of tasks.

  2. From the View drop-down menu, click New View.

  3. Click Add Column, then Switch to Text Mode > Edit Text Mode.

  4. Remove the text you find in the Text Mode box, and replace it with the following code:

    displayname=Week Day Difference
    textmode=true
    valueexpression=WEEKDAYDIFF({plannedCompletionDate},{actualCompletionDate})
    valueformat=HTML
    
  5. (Optional) To aggregate the values displayed in the view in a grouping, follow the steps described in Grouping: display the result of aggregating multiple calculated values in a grouping.

  6. Click Done, then Save View.

Previous pageView: calculate time and date differences
Next pageView: add a list of task successors in a column

Workfront