Skip to content
KiweelyKiweelyKiweely

Workday Calculated Fields for Dependents: Oldest Son and Age Range

Use True/False Condition with Extract Single Instance sorted by Date of Birth Ascending to pull an employee’s oldest son, and Date Difference with Extract Multi-Instance (Subset) to pull dependents within an age range in Workday integrations.

  • Checked against Workday on
  • Applies to Workday Extend
  • 7 min read
  • Published
  • By Kiweely
On this page

To extract an employee’s oldest son in a Workday integration, build a True/False Condition on the Dependent business object to match the relationship and exclude blank birth dates, then reference it in an Extract Single Instance (ESI) field on Worker sorted by Date of Birth Ascending with First occurrence. To extract all dependents whose age falls within a specific age range, compute age on Dependent with a Date Difference field (or use the delivered Age field), filter the lower and upper bounds in a True/False Condition, and return the matching set on Worker with Extract Multi-Instance (EMI) using Operation Type Subset.

Because Dependents on the Worker business object is a one-to-many (1:M) multi-instance field, both patterns start on Dependent to evaluate each record individually and then step up to Worker to pick either one instance or a filtered list.

1. Extract an employee’s oldest son (ESI chain)

This chain returns one Dependent record per worker and optionally pulls a specific attribute (such as Legal Name or Date of Birth) onto the Worker row for an EIB custom report or Core Connector field override.

Step Field Name (Example) Business Object Function Key Settings
Step1 Field Name (Example)CF TF Dependent Is Son Business ObjectDependent FunctionTrue/False Condition Key SettingsRelationship filter + Date of Birth Is not empty
Step2 Field Name (Example)CF ESI Worker Oldest Son Business ObjectWorker FunctionExtract Single Instance Key SettingsSource: Dependents; Sort: Date of Birth Ascending, First occurrence
Step3 Field Name (Example)CF LRV Oldest Son DOB Business ObjectWorker FunctionLookup Related Value Key SettingsLookup Field: CF ESI Worker Oldest Son; Return Value: Date of Birth

Step 1: Create the filter condition on Dependent

Open the Create Calculated Field task and configure a True/False Condition on the Dependent business object. How you identify a son depends on how your tenant maintains Relationship values:

  • If your tenant has a gender-specific relationship value (Son):
    1. Relationship | In the selection list | Value specified in this filter | Son
    2. And Date of Birth | Is not empty
  • If your tenant uses Child plus Gender:
    1. Relationship | In the selection list | Value specified in this filter | Child
    2. And Gender | In the selection list | Value specified in this filter | Male
    3. And Date of Birth | Is not empty

Add any extra eligibility criteria required by the receiving vendor (for example, Active or benefits coverage status) to this same condition so ineligible dependents are excluded before sorting.

Step 2: Create the Extract Single Instance field on Worker

Create a second calculated field on the Worker business object using the Extract Single Instance function:

  1. Source Field: Dependents
  2. Condition: CF TF Dependent Is Son
  3. Sort Field: Date of Birth
  4. Sort Direction: Ascending
  5. Instance to be Returned: First occurrence

Verify the sort direction before testing. An earlier birth date (such as 2008-03-14) sorts before a later birth date (2016-09-22), so Ascending with First occurrence returns the oldest matching dependent. Switching the direction to Descending returns the youngest.

CF ESI Worker Oldest Son returns a single Dependent object instance rather than a text or date value. If your EIB custom report or Core Connector: Worker (CCW) Field Override needs flat columns such as Name or Date of Birth on the Worker object, create one Lookup Related Value field on Worker per required attribute:

  1. Lookup Field: CF ESI Worker Oldest Son
  2. Return Value: Date of Birth (or Dependent Name / Legal Name)

In an EIB backed by a Custom Report, you can alternatively place CF ESI Worker Oldest Son in the column’s Business Object selector to pull multiple dependent fields without creating a separate LRV field for each column.

2. Extract dependents within an age range (EMI chain)

When an integration needs every dependent between two ages (for example, 18 through 26 for carrier eligibility or student verification), use Extract Multi-Instance instead of Extract Single Instance so Workday returns the full matching set rather than stopping at one dependent.

Step Field Name (Example) Business Object Function Key Settings
Step1 Field Name (Example)CF DD Dependent Age in Years Business ObjectDependent FunctionDate Difference Key SettingsStart: Date of Birth; End: Today (or effective date); Return: Years
Step2 Field Name (Example)CF TF Dependent Age 18 to 26 Business ObjectDependent FunctionTrue/False Condition Key SettingsDate of Birth Is not empty + >= 18 + <= 26
Step3 Field Name (Example)CF EMI Worker Dependents Age 18 to 26 Business ObjectWorker FunctionExtract Multi-Instance Key SettingsSource: Dependents; Operation Type: Subset; Condition: Step 2

Step 1: Calculate age on Dependent (Date Difference vs delivered Age)

Workday delivers an Age field on the Dependent business object that reflects age as of the current date. Use the delivered Age field if your integration always evaluates age on the execution date.

Create a Date Difference calculated field on Dependent instead whenever the receiving system requires age as of a specific cutoff (such as the report effective date or plan year start):

  1. Start Date Field: Date of Birth
  2. End Date Field: Today, Report Effective Date, or a Build Date calculated field for a fixed plan-year cutoff
  3. Return Value: Years (Workday rounds Date Difference results down to the nearest whole number, which matches completed years of age)
  4. Ignore Lower Level Date Components: Leave unchecked. Checking this box compares calendar years only and ignores month and day, which adds a year before a dependent’s actual birthday.
  5. Return Zero on Error: Leave unchecked unless you need numeric zero for downstream math. If checked, a blank Date of Birth returns 0 and will falsely match any range that starts at 0.

Step 2: Create the age range True/False Condition on Dependent

Create a True/False Condition on the Dependent business object with all rows joined by And:

  1. Date of Birth | Is not empty
  2. CF DD Dependent Age in Years (or delivered Age) | Greater than or equal to | Value specified in this filter | 18
  3. CF DD Dependent Age in Years (or delivered Age) | Less than or equal to | Value specified in this filter | 26

Adjust the upper operator to Less than if your eligibility rule ends on the dependent’s 26th birthday rather than including age 26. If you also need to restrict by relationship (for example, children only), add Relationship In the selection list Child to this same condition.

Step 3: Create the Extract Multi-Instance field on Worker

Create a calculated field on the Worker business object using Extract Multi-Instance:

  1. Source Field: Dependents
  2. Operation Type: Subset
  3. Condition: CF TF Dependent Age 18 to 26
  4. Sort Field (optional): Date of Birth, Sort Direction: Ascending

Setting a sort field on the EMI keeps the order deterministic from oldest to youngest across integration runs. In an EIB custom report, assign CF EMI Worker Dependents Age 18 to 26 as the Business Object on the dependent columns so the XML output emits one repeating group per matching dependent.

Common pitfalls in EIB and Core Connector integrations

  • Blank Date of Birth sorting first: Without Date of Birth Is not empty in your True/False Condition, a dependent with a missing birth date can sort ahead of populated dates in an Ascending ESI, returning the wrong person. In Date Difference, enabling Return Zero on Error turns a blank birth date into 0, pulling that record into any 0–N age range.
  • Twins or identical birth dates: Extract Single Instance supports a single sort field and always returns exactly one instance (First occurrence). If an employee has twin sons with the same Date of Birth, Workday returns one of them based on internal instance order. If the downstream system requires every tied dependent, use Extract Multi-Instance instead and handle selection or grouping in XSLT or Studio.
  • Effective date drift: Delivered Age and Today evaluate against the run date, which changes results on retroactive reruns or future-dated open enrollment files. Anchor Date Difference to the report effective date or a Build Date cutoff when carrier eligibility is tied to a plan date.
  • Core Connector: Worker (CCW) vs EIB output shape: An EIB custom report can expose an Extract Multi-Instance field directly as repeating XML nodes. In Core Connector: Worker, flat Worker Field Overrides work cleanly with single-instance Lookup Related Value fields (like the oldest son chain), while multi-instance dependent filtering is better handled through the connector’s delivered Dependent Data section or an Integration Field Override Service scoped to the dependent object.

Sources checked

Build and check reports in your own tenant.

Kiweely Vine builds custom reports and calculated fields in Workday, runs them against real data, and checks every row before you hand them over.

Get the next guide in your inbox.

One email a month with new guides and one Extend tip. Nothing else.

We’ll email you once to confirm. Unsubscribe in one click from any issue.

Protected by reCAPTCHA. Google’s privacy policy and terms apply.