Create a SUB, SUM, DIV, or PROD data expression
- Topics:
- Custom Forms
CREATED FOR:
- Experienced
- Admin
- Leader
- User
In this video, you will learn:
- What the SUB, SUM, DIV, and PROD expressions do
- How to create a SUB data expression in a calculated field
Transcript
In this video, you’ll learn what the SUB, SUM, DIV, and PROD expressions do and how to create a SUB data expression in a calculated field.
The SUB, SUM, DIV, and PROD expressions allow you to use basic arithmetic in conjunction with data from Workfront to create new data. For example, as a program or portfolio manager, you want to know the profit from each project. By subtracting the actual cost field from the actual revenue field, you can determine if the profit on your projects is positive or negative.
Now, you can do that manually, or you could have the system do it for you automatically using the SUB data expression. In a calculated field, mathematical expressions include the name of the expression and two data points, either a field in Workfront or a number, depending on the type of information needed. Let’s create a profit calculated field using the SUB data expression.
Select Calculated in the field option in your custom form.
Fill in the Label instructions, if needed, and the Format fields. Note with mathematical data expressions, you should always use either Number or Currency for the format. In this example, use Currency. Below, you’ll see a box titled Calculation where you’ll build the calculation for your field. If you already know how to build expressions, you can start typing it into the calculation field.
If not, you’ll find two search boxes titled EXPRESSIONS and FIELDS that allow you to search for the expression types and fields you want to use in your calculation. We’re going to use the search boxes. In the EXPRESSIONS search box, start to type the SUBTRACTION expression. When it appears in the list, click on it to put it in the calculation box.
Next, you’ll need to enter the data points needed for the expression.
In this example, actual revenue and actual cost.
Go to the FIELDS search box and start typing the name of the field.
When it appears in the list, click on it to put it in the calculation box.
You’ll notice the system automatically starts adding the necessary formatting to make the calculation work in Workfront.
If this were the sole data point you needed for the expression, you’d save it and move forward. However, there is another data point needed for this calculation. We need to subtract the actual cost from the actual revenue. So, once again, go to the FIELD search box, type in the field, click on it when it appears, and the system puts it into the equation. The only thing you’ll need to add is a comma between the two data points.
For more information on calculation structure, see the “Learn the data expression structure” tutorial.
Save the field and the custom form.
At this point, the calculated field can be used in different ways, like a view or a custom report, to see if the project is profit-positive, neutral, or negative.
Simple mathematical expressions can be built using well-known mathematical science, like plus, minus, divide, and times. For instance, in the SUB example, it was initially written with the SUB expression and the comma to represent the minus sign. However, it can also be written with parentheses and the minus sign.
As expressions become more complex and you begin to nest expressions within expressions, it may be easier to read, understand, and keep track of what’s going on within those expressions that include mathematical symbols. For example, you want to know when a task should have been completed based on when the task status moved to In Progress, which triggered an Actual Start Date, and what was the intended length of the work, also known as the plan duration. Now the projected date won’t work because it can move if the task is late, and the planned completion date doesn’t help if there are delays in prior tasks. So to get an accurate number, you can create an expression using the ADDDAYS date and time expression as well as the DIVISION mathematical expression.
It can be written either like this or like this. As a note, the duration field is stored in minutes.
So to show the time in days, it has to be divided by 480 minutes.
Whichever way you choose to write a mathematical expression, you can create simple or complex equations with an expression to produce the information you’re looking for within Workfront. -
Additional Information: ROUND expression
Create a ROUND expression
The ROUND expression takes any number and rounds it to a certain number of decimal places.
Most of the time, the ROUND data expression is used in conjunction with another data expression and when the format field is left as either Text or Number.
Let’s create a calculated field to determine the difference between the number of hours planned and actually logged on a task, which will require the SUB expression and look like this:
SUB({workRequired},{actualWorkRequired})
And since time is tracked in minutes and the preferred format is to show the information in hours, the expression also needs to be divided by 60 and look like this:
DIV(SUB({workRequired},{actualWorkRequired}),60)
If the format is changed to Number when building the calculated field in the custom form, you can change the number format when adding the field in a view.
However, if the field format when creating a custom field is left as Text, the format can’t be easily changed within the view. The ROUND expression has to be used to avoid seeing numbers like this in your project:
Use the ROUND data expression in a calculated field
The ROUND expression includes the name of the expression (ROUND) and, typically, two data points. These data points can be an expression or a field in Workfront, followed by a number to indicate how many decimal places you would like to go.
An expression would be structured like this: ROUND(data point, #)
In the expression calculating the difference between planned and actual hours, use this expression —DIV(SUB({workRequired},{actualWorkRequired}),60)—as the first data point. Then make sure whatever number comes from that expression doesn’t go more than 2 places to the right of the decimal.
The expression could be written like this: ROUND(DIV(SUB({workRequired},{actualWorkRequired}),60),2).
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