Has anyone done a calculated field that shows a date difference between planned completion date and a custom date? | Community
Skip to main content
February 20, 2021
Solved

Has anyone done a calculated field that shows a date difference between planned completion date and a custom date?

  • February 20, 2021
  • 1 reply
  • 591 views

I have a Target Launch Date custom field and I would like to see the date difference between that date and the Planned Completion on the project.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Richard_Le_

Hi Brittany,

There are a couple of different ways to achieve this depending on what your requirements are.

(1) You can create a new custom field on your project custom form that will work out the difference between the two dates so that you can then reference it in reports and visualise the data in graphs / charts. To achieve this you would simply add a calculated field to your project custom form and add the calculation: WEEKDAYDIFF(Planned Completion Date,Target Launch Date).

(2) You can add a column to an existing project report, switch it to text mode and add the following code. This will add a new column to your report view which will display the difference between the two dates. You wont be able to use this in graphs or charts and it will only work on the report where you have added this custom column

displayname=Date Difference

textmode=true

valueexpression=WEEKDAYDIFF({plannedCompletionDate},{DE:Target Launch Date})

valueformat=HTML

Hope this helps! Please shout if you have any questions.

Best Regards,

Rich.

1 reply

Richard_Le_Community AdvisorAccepted solution
Community Advisor
February 21, 2021

Hi Brittany,

There are a couple of different ways to achieve this depending on what your requirements are.

(1) You can create a new custom field on your project custom form that will work out the difference between the two dates so that you can then reference it in reports and visualise the data in graphs / charts. To achieve this you would simply add a calculated field to your project custom form and add the calculation: WEEKDAYDIFF(Planned Completion Date,Target Launch Date).

(2) You can add a column to an existing project report, switch it to text mode and add the following code. This will add a new column to your report view which will display the difference between the two dates. You wont be able to use this in graphs or charts and it will only work on the report where you have added this custom column

displayname=Date Difference

textmode=true

valueexpression=WEEKDAYDIFF({plannedCompletionDate},{DE:Target Launch Date})

valueformat=HTML

Hope this helps! Please shout if you have any questions.

Best Regards,

Rich.

February 22, 2021

Thanks! These helped!