Create a formula field
Updated
Who can do this: Super Admins, Creators and Integrators
A formula field is a data field whose value OnRamp calculates for you. You set up the calculation once, and every project or account gets its own number.
This feature is available when it's turned on for your organization. If you don't see it, contact your OnRamp team.
A formula field always produces a number. You can add one to projects or accounts, and it can do one of two things:
Days between two dates, such as the days from kickoff to go-live.
Math on numbers, which adds, subtracts, multiplies or divides two numbers.
Before you begin
To use Math on numbers, you need at least one number or currency data field on projects or accounts, whichever the formula applies to. If there isn't one, the dialog shows
There are no number or currency fields on projects yet to calculate with.and you can't save. Create a number or currency field first.
Create a formula field
Go to Settings > Data fields.
Select New formula field.
Enter a Field name, for example
Days in onboarding. Description (optional) is optional.Under Applies to, select Projects or Accounts. You can't change this after you save.
Under Function, select Days between two dates or Math on numbers.
Fill in the inputs for the function you chose. Both are described in the next sections.
Select Create field.
OnRamp calculates the value for every existing project or account right away.
Days between two dates
Choose a Start date and an End date. Each one can be:
A built-in date. For projects, these are Created date, Start date, Go-live date and Completed date. For accounts, it's Created date.
A date data field.
Today, which counts up to the current day.
Then choose how to Count:
Calendar days counts every day.
Weekdays (Mon–Fri) skips Saturdays and Sundays. It doesn't skip holidays.
How the result works:
It's blank when either date is empty.
It's negative when the end date is before the start date.
A count to Today keeps going after a project is completed. To measure a finished project, use Completed date as the end date.
The two dates must be different. A date can't come from another formula field.
Math on numbers
Choose a First number, an Operation and a Second number. The operations are Add (+), Subtract (−), Multiply (×) and Divide (÷). Each number can be:
A number or currency data field on the same object type, projects or accounts.
A number I type, a fixed number such as
100to turn a fraction into a percentage.
How the result works:
At least one of the two inputs must be a field.
You can't divide by a fixed zero. If the field you divide by is zero, or either field is empty, the result is blank.
A formula can use another formula field as an input, as long as they don't loop. OnRamp won't save a formula that depends on itself.
Where the value appears
A formula field is a number field that OnRamp calculates and stores for each record. It shows on the record, in Views, in exports and in merge fields. Nobody can edit the value, including inline in the project list. To change it, change its inputs or edit the formula.
A formula field can also sync to your CRM with CRM field sync, but only in the direction that sends values to the CRM. OnRamp refuses a mapping that reads the value from the CRM.
When the value updates
OnRamp recalculates formula values:
When a value the formula reads is saved.
When a project is created, or its dates change.
When you create or edit the formula. This recalculates every project or account.
Every night.
Every recalculation uses the current day. A count to Today updates every night. It updates sooner only when one of its own inputs changes. Changing any other field on the record doesn't update it.
Formula fields and project automations
A project data field automation can use a formula field:
When an input changes, the project's data field automations run for the changed formula value.
The nightly run starts only the automations that name the formula field.
Creating or editing a formula recalculates every record without starting any automations.
Edit a formula field
You can't edit an archived formula field until you unarchive it.
Go to Settings > Data fields.
Open the formula field's actions menu and select Edit field.
Change its name, inputs or count.
Select Save formula.
Saving recalculates the field on every project or account in the background.
If one of the formula's input fields was archived, that input is cleared when you open the formula. Save formula stays off until you pick a new input.
Archive a formula field
You archive a formula field the same way as any other data field. While it's archived, OnRamp skips it in every recalculation. When you unarchive it, OnRamp refills its value on every record in the background.