Expand my Community achievements bar.

Wondering how Workfront Proof works? Join our AMA on May 8th and ask our Community experts!
SOLVED

Column view that shows task cumulative days in a project

Avatar

Level 2

Hi folks. trying to make a column that works out the days a task finishes on from the start of a project and puts in a numerical value. 

So Project start date - 1/1
Task A > Due Date =  1/20

column says 19 days 

 

Bit of a rubbish explanation i know. but if theres any way to do this calculation it would really help!! thanks! 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 2

displayname=Date Difference
linkedname=direct
textmode=true
valueexpression=WEEKDAYDIFF(CLEARTIME({project}.{plannedStartDate}), CLEARTIME({plannedCompletionDate}))
valueformat=HTML

Flipped the 2 bits and its working!! THANK YOU JUSTIN!!! 

View solution in original post

6 Replies

Avatar

Level 3

This will get you what you're looking for on a Task view column. 

displayname=Date Difference
linkedname=direct
valueexpression=DATEDIFF(CLEARTIME({plannedCompletionDate}), CLEARTIME({project}.{plannedStartDate}))
valueformat=HTML

Avatar

Level 2

Hi Justin! 

Thank you most kindly for this, its a great piece of text. 
Only issue i have is that its pulling calendar days, i was hoping to get business days. 

Maybe theres a calculation to put in,( to remove weekends) or a way of applying the schedule thats used for the project (which i think removes weekends and holidays)? 

thanks again this is very helpful nonetheless! 

Avatar

Level 3

You can use the WEEKDAYDIFF function in place of the DATEDIFF function to the count of weekdays. I'm not sure if it'll take holiday's into account though. 

Avatar

Level 3

Here's the Workfront documentation snippet detailing all the different functions in Workfront:
https://experienceleague.adobe.com/en/docs/workfront/using/reporting/reports/calculated-custom-data/...

Avatar

Level 2

displayname=Date Difference
linkedname=direct
valueexpression=WEEKDAYDIFF(CLEARTIME({plannedCompletionDate}), CLEARTIME({project}.{plannedStartDate}))
valueformat=HTML

Hey Justin, thanks for getting back so quickly! Holidays i can live without as long as i can get the weekday. 

Applied the above text, but its putting out minus figures now. Not sure if theres an order adjustment i need to make to right it? Thanks for all the help!! 

Avatar

Correct answer by
Level 2

displayname=Date Difference
linkedname=direct
textmode=true
valueexpression=WEEKDAYDIFF(CLEARTIME({project}.{plannedStartDate}), CLEARTIME({plannedCompletionDate}))
valueformat=HTML

Flipped the 2 bits and its working!! THANK YOU JUSTIN!!!