Create DATEDIFF and WEEKDAYDIFF expressions
- Topics:
- Custom Forms
CREATED FOR:
- Experienced
- Admin
- Leader
- User
In this video, you will learn:
- What the DATEDIFF and WEEKDAYDIFF expressions calculate
- How to create a WEEKDAYDIFF data expression in a calculated field
Transcript
In this video, you’ll learn what the DATEDIFF and WEEKDAYDIFF expressions calculate and how to create a WEEKDAYDIFF expression in a calculated field. Note, both expressions consider the timestamps for days used in expressions.
Both expressions are used to find the number of days between two dates.
However, one includes all calendar days while the other does not.
The DATEDIFF expression includes the number of calendar days between the due dates. The WEEKDAYDIFF expression only looks at the number of working days as defined by your organization in the Workfront system. For instance, a calendar week is seven days, and a work week typically entails five days, for example, Monday to Friday.
So, when it comes to work and your team wants to know the number of days between an actual start date of a task, meaning when the task changes to the in-progress status, and an actual completion date, when the status was changed to complete, it’s important for the system to know what days to include.
Let’s build a date expression in a calculated field so Workfront can automatically calculate that information for each task your team is working on.
First, consider if you want the calendar dates which include weekends. For this example, use WEEKDAYDIFF to focus on the working days specified by the default schedule in Workfront.
Whichever date expression you use, know that the structure of the expression doesn’t change. Both expressions include the name of the expression and two data points, which are typically a start date and a completion date. Once that’s decided, you start building the expression.
In the custom form, select Calculated in the field options.
Give the field a name, and if needed, fill in the label instructions.
Next, decide what field format to use.
Because this field is focusing on a specific number of days between two dates, the format can be left as text or switch to number, either will work.
As a note, if you’re planning to use this field in a view and to sort the information by this field, number works best.
Click in the Calculation box where you can either start typing in the expression if you already know how to build it, or search for and plug in the needed elements. We’re going to choose the second way. First, search for the expression in the Expressions search box. In this case, WEEKDAYDIFF.
When found, click it to add it to the Calculation box.
At this point, we need to put in our data points, a start date and an end date.
In this example, we want to know the number of days, between when the status moved to in progress and when the status changed to complete. Luckily, the system captures those dates in the actual start date and actual completion date fields.
So, the first data point or field to place in the WEEKDAYDIFF expression is actual start date. Go to the Field search box and type the name of the field, and when it appears in the list, click it to put it in the Calculation box.
The system automatically, starts adding the necessary formatting to make the calculation work in Workfront.
The next data point is the date the task was marked as complete or the actual completion date. Once again, go to the Field search box, type in the name of the field, and click it to put it in the calculation box.
The only additional thing needed is a comma, between the two data points.
For more information on calculation structure, see the “Learn the data expression structure” tutorial.
Once done, save the field and the custom form.
From here, wherever that custom form is attached, the system can start calculating the number of days between the specified dates. And you can use that information in many ways, like a view and a report.
With date expressions like DATEDIFF and WEEKDAYDIFF, you can start to understand how long work is taking, where praise or advice can be given, and if standards are being applied. And ultimately, granting you and your team better communication and collaboration. -
Note: The WEEKDAYDIFF data expression does NOT take into account holidays specified by your organization.
Workfront
- Workfront Tutorials
- Administration and Setup
- Organizational setup
- Manage deleted items
- Configure system defaults
- Layout templates
- What are layout templates?
- Find layout templates
- Customize terminology with layout templates
- Customize the Main Menu with layout templates
- Add and manage pins through a layout template
- Customize Home with layout templates
- Assign and manage access to layout templates
- Customize object areas with a layout template
- Customize project details with layout templates
- Customize project headers with layout templates
- Customize reporting lists with layout templates
- Email and In App Notifications
- Create and manage users
- Approval processes and milestone paths
- System performance and maintenance
- Project finances
- Custom Data
- Custom Forms
- Calculated expressions
- Get started with calculated fields and expressions
- Learn the data expression structure
- Understand Date & Time and Mathematical expressions
- Create ADDDAYS, ADDWEEKDAY, ADDMONTHS, ADDYEARS expressions
- Use the Calculation Editor
- Create DATEDIFF and WEEKDAYDIFF expressions
- Create a SUB, SUM, DIV, or PROD data expression
- Use the CONCAT expression in a calculated field
- Create LEFT/RIGHT expressions
- Use the ISBLANK and CONTAINS expressions
- Create an IF text expression
- Things to know about calculated field expressions
- Manage work
- Projects
- Understand basic project creation
- Navigate the project page
- Learn four ways to create a project
- Fill in the project details
- Get started planning a project
- Take a project live
- Get started managing a project
- Find projects
- Share a project
- Understand the project team
- Understand project communication
- View project information
- Track overall project progress
- Track work progress with project metrics
- Understand the Gantt view
- Understand the Board view
- Tasks
- Issues/requests
- Request queues
- Portfolios
- Approval processes and milestone paths
- Create and manage project templates
- Project timelines
- Close a project
- Project finances for users
- Intermediate projects
- Projects
- Reporting
- Basic reporting
- Understand reporting elements
- Understand reporting components
- Create a basic grouping
- Create a basic view
- Add basic conditional formatting to a view
- Create a basic filter
- Understand the new filter experience
- Create basic filter activities
- Create a simple report
- Create a task report
- Copy a report
- Create reports with charts
- Create a matrix report
- Create dashboards
- Send and share reports
- Understand report settings
- Intermediate reporting
- Create filters with user-based wildcards
- Create filters with date-based wildcards
- Create OR statements in filters
- Understand built-in project filters
- Understand built-in task filters
- Understand built-in issue filters
- Understand basic text mode for filters
- Understand basic text mode for views
- Understand basic text mode for groupings
- Create custom prompts
- Advanced reporting
- Calendar reports
- Basic reporting
- Manage resources
- Workfront Goals
- Workfront Planning
- Integrations
- Adobe Creative Cloud
- Adobe Experience Manager Assets Essentials
- G Suite
- Jira
- Microsoft Outlook
- Microsoft Teams
- Adobe Workfront for Microsoft Teams Overview
- Install Adobe Workfront for Microsoft Teams
- Access Adobe Workfront from Microsoft Teams
- Search for and share Adobe Workfront items in Microsoft Teams
- Create Adobe Workfront tasks from Microsoft Teams
- Submit Adobe Workfront requests from Microsoft Teams
- Manage Adobe Workfront notifications in Microsoft Teams
- Slack
- Fusion
- Welcome to Workfront Fusion
- Understand the basics
- Initial scenario design walkthrough
- Initial scenario design exercise
- Mapping panel and formula editor
- Mapping panel important notes
- Beyond basic mapping walkthrough
- Beyond basic mapping exercise
- Use filters
- Filters walkthrough
- Filters exercise
- Access previous versions walkthrough
- Access previous versions exercise
- Universal connectors and routing
- Universal connectors exercise overview
- Introduction to universal connectors walkthrough
- Introduction to universal connectors exercise
- Understand routers
- Routers walkthrough
- Routers exercise
- Common routing patterns
- Routing patterns walkthrough
- Routing patterns exercise
- Set-it and get-it
- Get/Set variables walkthrough
- Set/Get variables exercise
- Iteration and aggregation
- Execution history and scheduling
- Beyond basic modules
- Data structures and data stores
- Final functional bits and bobs
- Troubleshooting and error handling
- Workfront Fusion administration
- Design optimization and testing
- Workfront Proof
- Learn the benefits of proofing
- Understand the difference between a document and a proof
- Proofing viewers explained
- Administration and setup
- What is an automated workflow template
- Customize proof comment actions
- Customize proof decision options
- Understand email alerts and proof notifications
- Proof roles and email alerts
- Report on proofs
- Set default at risk proof settings
- Set up global proof settings
- Set default proof roles
- Set up proof account default settings
- Settings for proof users
- Upload proofs
- What is a proof version
- Who uploads the proof versions
- Convert a document to a proof
- View and compare proof versions
- Upload a proof version
- Manage proof versions
- Upload a proof of a video
- Upload a proof of a website
- Upload a proof with a basic workflow
- Upload a proof with an automated workflow
- Upload with a drag and drop
- Combine multiple files into a single proof
- Proof workflows
- Review and approve work
- Workfront DAM
- System setup
- Metadata and keywords
- Brand Connect customization
- Workfront DAM user: Contributor
- Understand Workfront DAM as a contributor
- Understand asset management as a contributor
- Understand finding assets as a contributor
- Understand lightboxes as a contributor
- Understand metadata and keyword best practices
- Work with assets as a contributor
- Send a file as a contributor
- Publish assets as a contributor
- Add a Workfront DAM link
- Brand Connect user
- Home
- Agile
- Best Practices
- Agile
- API Explorer
- Business case and portfolio optimizer
- Communication
- Custom forms
- Custom reports
- Dashboards
- Documents
- Filters, views, and groupings
- Job roles
- Layout templates
- Licenses and access levels
- Onboarding and adoption
- Organization units
- Portfolios and programs
- Preview sandbox
- Project, task, and issue preferences
- Project templates
- Proofing
- Request queue
- Resource Planner
- Resource pools
- Scenario Planner
- Schedules
- Statuses
- System performance and maintenance
- Text mode reporting
- Timeline planning and management
- Timesheets and logging time
- Utilization
- Workfront Goals
- Workload Balancer
- Workfront for executives