Text mode, how to count if Planned completion date is same or more than 3 three days than task Entry date? | Community
Skip to main content
June 30, 2021
Question

Text mode, how to count if Planned completion date is same or more than 3 three days than task Entry date?

  • June 30, 2021
  • 1 reply
  • 586 views

Hi, Does anyone have an idea how to compare planned completion date and entry date. I was asked to count this value and then if the planned completion is more than than 3 days from the entry date, add text on the column.

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

1 reply

Community Advisor
June 30, 2021

Hi Mari,

Using the following text mode in a column on your view will count the number of weekdays between the task entry date and planned completion date:

displayname=Days between entry and PC

textmode=true

valueexpression=WEEKDAYDIFF({entryDate},{plannedCompletionDate})

valueformat=HTML

The following text mode will return the text '3 or more days' if the difference between entry and planned completion is greater than or equal to 3, else it will return 'Less than 3 days'

displayname=3 days or more?

textmode=true

valueexpression=IF(WEEKDAYDIFF({entryDate},{plannedCompletionDate})>=3,'3 or more days','Less than 3 days')

valueformat=HTML

Hope that helps!

Best Regards,

Rich.

MariPeAuthor
July 2, 2021

Hi Richard!

Thank you so much, that works just perfect.

I actually use this to Ad-hoc calculation where we see if work order is so called fast order or not.

Thanks one more time and have a nice summer!

Best Regards,

Mari Perasto