---
schema_version: "1"
id: b20509d6492e8e7a1bdfafd0cd1448d3626623f5a9efce7ece3d812029d9aa9d
title: Formulas
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/dpe_formula.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.dpe_formula.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: cd6416c679d97b48156d3b4fbc7dde05787bdc8f6cfb52492b45438672d3eae5
description: Use the formula node to create multiple formulas and store the results of each formula in a new field. Create multiple formulas in a single node and use the formula results in subsequent nodes. Order the formulas within a node so that a formula can use the result of an earlier formula. Use the compute relative transformation option to determine the trends of specific fields.
products:
  - Cross Cloud
release: "264"
---
# Formulas

Use the formula node to create multiple formulas and store the results of each formula in a new field. Create multiple formulas in a single node and use the formula results in subsequent nodes. Order the formulas within a node so that a formula can use the result of an earlier formula. Use the compute relative transformation option to determine the trends of specific fields.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=ind.dpe_editions.htm&amp;release=264.0.0&amp;type=5" title="Review the supported editions and availability for Data Processing Engine (DPE).">View supported editions</a>.</td></tr></tbody></table>

Before you create a formula, specify the alias, data type, and format of the derived field. The derived field can be of type Date, Date/Time, Number, or Text.

To create a formula, pick a field, an operator, and a function in any combination. You can also pick an [input variable](https://help.salesforce.com/s/articleView?id=ind.dpe_define_input_variables.htm&release=264.0.0&type=5 "Define flexible data processing rules by using input variables to define default values, filter records, and create formulas. To dynamically control the data filters and formulas at run time, create variables without values and use them to configure Filter and Formula nodes. During a definition run, specify variable values based on your specific requirements. For example, to filter opportunities above a certain value for different fiscal years, set a default value for the input variable and then update it when you run the definition.") as a field. After you create a formula, check if the syntax is valid. The result of this node includes all the fields from the source node and the formula fields you create. If a field that’s used in a formula is removed from the source node, ensure that you manually remove the field from the formula.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-data_processing_engine-264-0-0-production-enus/80e06924-e6c0-4b82-81cf-e99ccd77d857/images/icon_note.png)

Note To calculate the total number of formula fields that you can create in a formula node, add the fields in the source node and custom formulas.

## Order Formulas and Reference an Earlier Formula

Create multiple formulas in a single formula node. Each formula has a sequence number that sets the order in which the formulas run. To change the order, drag a formula by its drag handle or use the keyboard.

To reorder a formula with the keyboard, press **Space** or **Enter** to pick up the formula, use the arrow keys to move it up or down, and press **Space** or **Enter** to drop it. To cancel, press **Escape**.

A formula can reference the output of any formula that appears above it in the sequence. In the expression editor, the outputs of earlier formulas appear under Formula Fields, along with Data Source Fields and Input Variable Fields. A formula can't reference another formula at the same position or later in the sequence.

For example, to calculate the total price, create these formulas in this order in a single formula node:

- NetPrice, with the expression `ListPrice - Discount`.
- Tax, with the expression `NetPrice * TaxRate`. NetPrice is available under Formula Fields because it's earlier in the sequence.
- TotalPrice, with the expression `NetPrice + Tax`.

![Formula node](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-data_processing_engine-264-0-0-production-enus/80e06924-e6c0-4b82-81cf-e99ccd77d857/data_processing_engine/images/data_processing_engine_formula.png)

Order your formulas so that dependencies flow from top to bottom. Add base calculations first, and add the formulas that depend on them later. If you delete or rename an earlier formula that a later formula references, update the later formula before you save.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-data_processing_engine-264-0-0-production-enus/80e06924-e6c0-4b82-81cf-e99ccd77d857/images/icon_example.png)

Example To calculate the average annual revenue, the formula is {AnnualRevenue}/12. The formula field is of type Number.

[Math Functions](https://help.salesforce.com/s/articleView?id=ind.dpe_formula.htm&release=264.0.0&type=5) | [String Functions](https://help.salesforce.com/s/articleView?id=ind.dpe_formula.htm&release=264.0.0&type=5) | [Date Functions](https://help.salesforce.com/s/articleView?id=ind.dpe_formula.htm&release=264.0.0&type=5) | [Logical Functions](https://help.salesforce.com/s/articleView?id=ind.dpe_formula.htm&release=264.0.0&type=5) | [Additional Functions](https://help.salesforce.com/s/articleView?id=ind.dpe_formula.htm&release=264.0.0&type=5) | [Compute Relative Transformation](https://help.salesforce.com/s/articleView?id=ind.dpe_formula.htm&release=264.0.0&type=5)

## Math Functions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e180">Function</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e183">Description</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e186">Supported Runtime</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e189">Syntax</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e192">Example Syntax</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e180 ">ABS</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e183 ">Calculates the absolute value of a number. The absolute value of a number is
              the number without its positive or negative sign.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e186 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e189 ">
              <p><code>ABS(n)</code></p>
              <p style="margin-bottom:0;">n is a number or field that you want to determine the
                absolute value of.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e192 "><code>ABS({AnnualRevenue} - {Target_Revenue__c})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e180 ">CEIL</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e183 ">Rounds a number up to the nearest integer, away from zero if negative.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e186 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e189 ">
              <p><code>CEIL(n)</code></p>
              <p style="margin-bottom:0;">n is a number or field that you want to round up to
                the nearest integer.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e192 "><code>CEIL({NumberOfEmployees} / 15)</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e180 ">EXP</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e183 ">Returns a value for e raised to the power of a number you specify.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e186 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e189 ">
              <p><code>EXP(n)</code></p>
              <p style="margin-bottom:0;">n is a number or field to which you want to raise
                e.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e192 "><code>{AnnualRevenue} * EXP({Growth_Rate__c})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e180 ">FLOOR</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e183 ">Returns a number rounded down to the nearest integer. If the number is
              negative, it’s rounded up to the nearest integer.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e186 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e189 ">
              <p><code>FLOOR(n) </code></p>
              <p style="margin-bottom:0;">n is a number or field that you want to round down
                to the nearest integer.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e192 "><code>FLOOR({AnnualRevenue} / 5000)</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e180 ">LOG</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e183 ">Returns the logarithm of a number in the base you specify.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e186 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e189 ">
              <p><code>LOG(m, n)</code></p>
              <ul>
                <li>m is a number or field used as the base of the logarithm.</li>

                <li>n is a number or field that you want to take the logarithm of.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e192 "><code>LOG(5, {NumberOfEmployees})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e180 ">MAX</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e183 ">Returns the highest number from a list of numbers.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e186 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e189 ">
              <p><code>MAX(value1, value2) </code></p>
              <ul>
                <li>value1 is the first number or field to be compared.</li>

                <li>value2 is the second number or field to be compared.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e192 "><code>MAX({Projected_Q1_Revenue__c},
                {Projected_Q2_Revenue__c})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e180 ">MIN</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e183 ">Returns the lowest number from a list of numbers.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e186 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e189 ">
              <p><code>MIN(value1, value2)</code></p>
              <ul>
                <li>value1 is the first number or field to be compared.</li>

                <li>value2 is the second number or field to be compared.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e192 "><code>MIN({Support_Plan_Cost__c}, {Maintenance_Fee__c})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e180 ">MOD</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e183 ">Returns a remainder after a number is divided by a specified divisor.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e186 ">CRM Analytics</td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e189 ">
              <p><code>MOD(number, divisor) </code></p>
              <ul>
                <li>number is the number or field to be divided.</li>

                <li>divisor is the number or field that you want to divide by.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e192 "><code>MOD({NumberOfEmployees}, 10)</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e180 ">POWER</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e183 ">Raises a number to the power of another number.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e186 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e189 ">
              <p><code>POWER(m, n) </code></p>
              <ul>
                <li>m is a number or field that you want to raise to the specified power.</li>

                <li>n is a number or field that is the power that you want to raise the specified
                  number to.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e192 "><code>POWER({Customer_Tier__c}, 2)</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e180 ">ROUND</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e183 ">Returns the nearest number to a number you specify, constraining the new number
              by a specified number of digits.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e186 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e189 ">
              <p><code>ROUND(n[, m])</code></p>
              <ul>
                <li>n is a number or field that you want to round.</li>

                <li>m is a number or field that specifies the number of digits to round the
                  specified number to.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e192 "><code>ROUND({AnnualRevenue} * {Commission_Rate__c}, 2)</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e180 ">SQRT</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e183 ">Returns the positive square root of a given number.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e186 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e189 ">
              <p><code>SQRT(n) </code></p>
              <p style="margin-bottom:0;">n is a number or field that you want to find the
                square root of. </p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e192 "><code>SQRT({Office_Area_SqFt__c})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e180 ">TRUNC</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e183 ">Truncates the specified number of decimal values from the number.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e186 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e189 ">
              <p><code>TRUNC(number, decimalPlaces) </code></p>
              <ul>
                <li>number is a number or field that you want to truncate.</li>

                <li>decimalPlaces is the number of digits you want to the right of the decimal
                  point. This parameter is required. If you don’t specify want any decimal values,
                  use a 0.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e192 "><code>TRUNC({AnnualRevenue} / {NumberOfEmployees}, 0)</code></td>

          </tr>
        </tbody>
      </table>

## String Functions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e557">Function</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e560">Description</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e563">Supported Runtime</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e566">Syntax</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e569">Example Syntax</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">BEGINS</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Returns true if the string starts with the specified characters.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>BEGINS(string, prefix)</code></p>
              <ul>
                <li>string is the text or field to search.</li>

                <li>prefix is the value to search for at the beginning of the field. </li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>BEGINS({AccountSource} , "Web")</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">CONCAT</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Returns a string by connecting the values of the specified columns and input
              strings.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>CONCAT(field, num_chars)</code></p>
              <ul>
                <li>field is the text or field from which you want to extract characters.</li>

                <li>num_chars is the number of characters you want to return.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>CONCAT({Name}, " (", {BillingCity}, ")")</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">CONTAINS</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Compares two arguments of text and returns TRUE if the first argument contains
              the second argument. If not, it returns FALSE.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>CONTAINS(string, searchString) </code></p>
              <ul>
                <li>string is the text or field that you want to search within.</li>

                <li>searchString is the specific text you are looking for inside the string.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>CONTAINS({Description}, "High Priority")</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">ENDS</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Returns true if the specified string is found at the end of the column
              value.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>ENDS(string, prefix)</code></p>
              <ul>
                <li>string is the text or field to search.</li>

                <li>prefix is the value to search for at the end of the field. </li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>ENDS({Website}, ".gov")</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">LENGTH</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Returns the number of characters in a text.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>LENGTH(field) </code></p>
              <p style="margin-bottom:0;">field is the text or field to
                measure.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>LENGTH({BillingPostalCode})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">LOWER</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Returns the string with all letters in the specified text string to lowercase.
              Any characters that aren’t letters are unaffected by this function. Locale rules are
              applied if a locale is provided.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>LOWER(string) </code></p>
              <p style="margin-bottom:0;">string is the text or field to convert to
                lowercase. </p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>LOWER({Website})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">LTRIM</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Removes the specified substring from the beginning of a string. To remove
              leading spaces, do not specify a substring.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>LTRIM(string, substr)</code></p>
              <ul>
                <li>string is the text or field to remove the leading spaces or specified
                  characters from. </li>

                <li>substr is the value to remove from the string. If unspecified, the
                  transformation removes the leading spaces. </li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>LTRIM({Phone} ,"+") </code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">MD5</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">
              <p>Returns a 32-character string that is a text representation of the hexadecimal
                value of a 128-bit checksum. </p>
              <div class="slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium">
                <div class="slds-media slds-media_responsive">
                  <div class="slds-media__figure"><span class="slds-icon_container slds-icon_container_circle "></span></div>
                  <div class="slds-media__body" style="padding-top:.5rem;padding-bottom:.5rem;"><span class="slds-text-title_caps">Restriction</span> The MD5 function isn't available in Government Cloud. Use
                    SHA256 instead.</div>
                </div>
              </div>
            </td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 "><span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>MD5(string))</code></p>
              <p style="margin-bottom:0;">string is the text or field for which you want
                to calculate the checksum. </p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>MD5({Name})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">RTRIM</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Removes the specified substring from the end of a string. To remove trailing
              spaces, do not specify a substring.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>RTRIM(string, substr)</code></p>
              <ul>
                <li>string is the text or field to remove the trailing spaces or specified
                  characters from. </li>

                <li>substr is the value to remove from the string. If unspecified, the
                  transformation removes the trailing spaces. </li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>RTRIM({PhotoUrl} , ".")</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">SUBSTITUTE</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Substitutes new text for old text in a text string.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>SUBSTITUTE(string, searchStr, replaceStr)</code></p>
              <ul>
                <li>string is the text or field that contains the string to replace.</li>

                <li>searchStr is the string to replace.</li>

                <li>replaceStr is the value to replace the string. </li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>SUBSTITUTE({Phone}, ".", "-")</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">SUBSTR</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Returns characters from the string, starting at the specified position and of
              the specified length.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>SUBSTR(field, pos[, len])</code></p>
              <ul>
                <li>field is the text or field to extract the substring from. </li>

                <li>position is the starting character position of the substring. The first
                  character in a string is position 1. If the position is negative, the position
                  is relative to the end of the string. A position of -1 is the last character. </li>

                <li>len is the number of characters to return. If the length is 0, the output is
                  an empty string. If the length is negative, the function returns null. This
                  parameter is optional.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>SUBSTR({BillingPostalCode} , 1, 3)</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">TEXT</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Converts a value that represents a number to a text string that represents the
              same number.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>TEXT(number)</code></p>
              <p style="margin-bottom:0;">number is the number or field to
                convert.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>TEXT({NumberOfEmployees}))</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">TRIM</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Removes the specified substring from the beginning and end of a string. To
              remove leading and trailing spaces, do not specify a substring.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>TRIM(string, substr)</code></p>
              <ul>
                <li>string is the text or field to remove the specified substring from.</li>

                <li>substr is the value removed from the string. This parameter is optional. If
                  unspecified, the transformation removes the trailing spaces. </li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>TRIM({SourceSystemIdentifier} , " ")</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">UPPER</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Returns the string with all letters in the specified text string to uppercase.
              Any characters that aren’t letters are unaffected by this function. Locale rules are
              applied if a locale is provided.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>UPPER(string)</code></p>
              <p style="margin-bottom:0;">string is the text or field to convert to
                uppercase.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>UPPER({BillingPostalCode})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">UUID</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Returns a newly generated unique ID.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 "><code>UUID()</code></td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>UUID()</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e557 ">VALUE</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e560 ">Converts a text string that represents a number to a value that represents the
              same number.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e563 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e566 ">
              <p><code>VALUE(string) </code></p>
              <p style="margin-bottom:0;">string is the text or field to convert to
                number.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e569 "><code>VALUE({Legacy_Employee_Count__c})</code></td>

          </tr>
        </tbody>
      </table>

## Date Functions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1053">Function</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1056">Description</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1059">Supported Runtime</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1062">Syntax</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1065">Example Syntax</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1053 ">ADDDAYS</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1056 ">Returns a new date after adding the specified number of days.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1059 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1062 ">
              <p><code>ADDDAYS(date, 5)</code></p>
              <ul>
                <li>date is the date or field to add days to.</li>

                <li>5 is the number of days to add</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1065 "><code>ADDDAYS({CreatedDate}, 14)</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1053 ">ADDMONTHS</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1056 ">Returns the date with the specified number of months after the start
              date.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1059 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1062 ">
              <p><code>ADDMONTHS(date, 5)</code></p>
              <ul>
                <li>date is the date or field to add months to.</li>

                <li>5 is the number of months to add to add</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1065 "><code>ADDMONTHS({CreatedDate}, 12)</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1053 ">DATEDIFF</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1056 ">Returns the number of days between start date and end date.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1059 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1062 ">
              <p><code>DATEDIFF(endDate, startDate)</code></p>
              <ul>
                <li>endDate is the later of the two dates you are finding the difference between. </li>

                <li>startDate is the earlier of the two dates you are finding the difference
                  between. </li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1065 "><code>DATEDIFF({LastActivityDate} , {LastViewedDate})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1053 ">DATETIMEVALUE</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1056 ">Returns a year, month, day, and GMT time value.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1059 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1062 ">
              <p><code>DATETIMEVALUE(dateTimeString[,format])</code></p>
              <ul>
                <li>dateTimeStringfield is a timestamp or field that you want to convert.</li>

                <li>format is the timestamp format pattern to follow. This parameter is optional.
                  The function follows casting rules to a timestamp if format isn’t included.
                </li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1065 "><code>DATETIMEVALUE({LastModifiedDate}) </code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1053 ">DATEVALUE</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1056 ">Returns a date value for a date/time or text expression.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1059 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1062 ">
              <p><code>DATEVALUE(dateString[,format])</code></p>
              <ul>
                <li>dateStringfield is a date or field that you want to convert.</li>

                <li>format is the date format pattern to follow. This parameter is optional. The
                  function follows casting rules to a timestamp if format isn’t included. </li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1065 "><code>DATEVALUE({LastActivityDate}) </code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1053 ">DAY</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1056 ">Returns a day of the month in the form of a number from 1 through 31.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1059 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1062 ">
              <p><code>DAY(date)</code></p>
              <p style="margin-bottom:0;">date is the date field to extract the day of the
                month from. </p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1065 "><code>DAY({Contract_Start_Date__c})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1053 ">MONTHDIFF</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1056 ">Returns the number of months between start date and end date.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1059 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1062 ">
              <p><code>MONTHDIFF(endDate, startDate) </code></p>
              <ul>
                <li>endDate is the later of the two dates you are finding the difference between. </li>

                <li>startDate is the earlier of the two dates you are finding the difference
                  between. </li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1065 "><code>MONTHDIFF({LastActivityDate} , {LastViewedDate})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1053 ">NOW</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1056 ">Returns a date/time representing the current moment in UTC (GMT).</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1059 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1062 "><code>NOW() </code></td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1065 "><code>(NOW() - {CreatedDate}) * 24</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1053 ">TODAY</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1056 ">Returns the current date as a date data type.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1059 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1062 "><code>TODAY()</code></td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1065 "><code>{Contract_End_Date__c} - TODAY()</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1053 ">WEEKDAY</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1056 ">Return the day of the week for the given date, using 1 for Sunday, 2 for
              Monday, through 7 for Saturday.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1059 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1062 ">
              <p><code>WEEKDAY(date)</code></p>
              <p style="margin-bottom:0;">date is the date field to extract the day of
                the week from. </p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1065 "><code>WEEKDAY(DATEVALUE({CreatedDate}))</code></td>

          </tr>
        </tbody>
      </table>

## Logical Functions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1373">Function</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1376">Description</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1379">Supported Runtime</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1382">Syntax</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1385">Example Syntax</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1373 ">AND</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1376 ">Returns a TRUE response if all values are true. Returns a FALSE response if one
              or more values are false.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1379 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1382 ">
              <p><code>AND(logical1, logical2, ...)</code></p>
              <ul>
                <li>logical1 is the first logical condition that you want to check. This
                  expression must result in a value of either TRUE or FALSE. </li>

                <li>logical2 is the second logical condition that you want to check, which must
                  also result in a value of TRUE or FALSE. </li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1385 "><code>AND({NumberOfEmployees} &gt; 1000, {BillingCountry} ==
                "USA")</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1373 ">BLANKVALUE</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1376 ">Checks whether an expression is blank. If the expression is blank,
              substitute_expression is returned. If the expression contains a value, that value is
              returned.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1379 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1382 ">
              <p><code>BLANKVALUE(expression, substitute_expression) </code></p>
              <ul>
                <li>expression is the field or value you want to check to see if it's empty.</li>

                <li>substitute_expression is the value you want the formula to return if the
                  expression is blank.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1385 "><code>BLANKVALUE({Description}, "No description provided.")</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1373 ">CASE</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1376 ">Checks a given expression against a series of values. If the expression is
              equal to a value, it returns the corresponding result. If it isn’t equal to any
              values, it returns the else_result.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1379 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1382 ">
              <p><code>CASE(expression,value1, result1, value2,
                  result2,...,else_result)</code></p>
              <ul>
                <li>expression is the field or value you want to compare against a series of other
                  values.</li>

                <li>value1 is the first value you want to check for a match with the
                  expression.</li>

                <li>result1 is the value that is returned if the expression matches value1.</li>

                <li>value2, result2, ... is the next pair of values to check and the corresponding
                  results to return. You can have many of these pairs.</li>

                <li>else_result is the value that is returned if the expression does not match any
                  of the specified values.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1385 "><code>CASE({Industry}, "Technology", "Tech Sales Team", "Healthcare",
                  "Healthcare &amp; Life Sciences Team", "General Sales Team")</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1373 ">IF</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1376 ">Determines if expressions are true or false. Returns a given value if true and
              another value if false.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1379 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1382 ">
              <p><code>IF(logical_test, value_if_true, value_if_false)</code></p>
              <ul>
                <li>logical_test is the condition you want to check. This expression must result
                  in a value of either TRUE or FALSE. </li>

                <li>value_if_true is the value that is returned if the logical_test is true.</li>

                <li>value_if_false is the value that is returned if the logical_test is
                  false.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1385 "><code>IF({NumberOfEmployees} &gt; 1000, "Enterprise", "SMB")</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1373 ">ISBLANK</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1376 ">Checks whether an expression is blank. If the expression is blank, TRUE is
              returned. If the expression contains a value, FALSE is returned.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1379 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1382 ">
              <p><code>IF(logical_test, value_if_true, value_if_false)</code></p>
              <ul>
                <li>logical_test is the condition you want to check. This expression must result
                  in a value of either TRUE or FALSE.</li>

                <li>value_if_true is the value that is returned if the logical_test is true.</li>

                <li>value_if_false is the value that is returned if the logical_test is
                  false.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1385 "><code>IF(ISBLANK({Phone}), "Follow up required", "Contact info
                  complete")</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1373 ">ISNULL</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1376 ">Determines if an expression is null (blank) and returns TRUE if it’s blank. If
              it contains a value, the function returns FALSE.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1379 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1382 ">
              <p><code>IF(logical_test, value_if_true, value_if_false)</code></p>
              <ul>
                <li>logical_test is the condition you want to check. This expression must result
                  in a value of either TRUE or FALSE.</li>

                <li>value_if_true is the value that is returned if the logical_test is true.</li>

                <li>value_if_false is the value that is returned if the logical_test is
                  false.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1385 "><code>IF(ISNULL({Website} ), "Website Not Set", "Website
                Available")</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1373 ">NULLVALUE</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1376 ">Checks whether expression isn’t null and returns substitute expression. If
              expression is null, it returns the original expression value.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1379 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1382 ">
              <p><code>NULLVALUE(expression, substitute_expression)</code></p>
              <ul>
                <li>expression is the number, date, or datetime field you want to check to see if
                  it is empty (null).</li>

                <li>substitute_expression is the value you want the formula to return if the
                  expression is empty.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1385 "><code>NULLVALUE({AnnualRevenue}, 0)</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1373 ">OR</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1376 ">Determines if expressions are true or false. Returns TRUE if any expression is
              true. Returns FALSE if all expressions are false.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1379 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1382 ">
              <p><code>OR(logical1, logical1, ...)</code></p>
              <ul>
                <li>logical1 is the first logical condition that you want to check. This
                  expression must result in a value of either TRUE or FALSE.</li>

                <li>logical2 is the second logical condition that you want to check, which must
                  also result in a value of TRUE or FALSE.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1385 "><code>OR({NumberOfEmployees} &gt; 5000, {AnnualRevenue} &lt;
                10000)</code></td>

          </tr>
        </tbody>
      </table>

## Additional Functions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1679">Function</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1682">Description</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1685">Supported Runtime</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1688">Syntax</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1691">Example Syntax</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1679 ">COALESCE</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1682 ">
              <p>Gets the first non-null value from a list of parameters, or replaces nulls with a
                different value.</p>
              <p style="margin-bottom:0;">This function is often used to substitute a default value for null values when
                data is retrieved for display.</p>
            </td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1685 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1688 ">
              <p><code>COALESCE(expr1, expr2, ...) </code></p>
              <ul>
                <li>expression1 is the first column or text string to search for a non-null
                  value.</li>

                <li>expression2 is the next column or text string to search for a non-null
                  value.</li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1691 "><code>COALESCE({Phone}, {Fax})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1679 ">EXPLODE</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1682 ">Converts multivalue data into a new column where each element is a row. You
              can't nest the EXPLODE function within another function.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1685 "><span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1688 ">
              <p><code>EXPLODE(field) </code></p>
              <p style="margin-bottom:0;">field is the field that contains the
                multivalue data you want to transform into individual rows. </p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1691 "><code>EXPLODE({Type})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1679 ">SEQUENCE</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1682 ">Returns an array of numbers or dates by defining the start and end values, and
              the interval between each value. If the interval isn't specified, the function
              returns all values between the start and end values.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1685 "><span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1688 ">
              <p><code>SEQUENCE(start, end, step)</code></p>
              <ul>
                <li>start is the beginning value of the series.</li>

                <li>end is the ending value of the series.</li>

                <li>step is the increment or interval between each value in the series. </li>

              </ul>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1691 "><code>SEQUENCE({CreatedDate}, {LastModifiedDate}, 1)</code></td>

          </tr>
        </tbody>
      </table>

## Compute Relative Transformation

To compute relative transformation, turn on **Use the compute relative transformation** in the formula node.

![Compute Relative Transformation option](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-data_processing_engine-264-0-0-production-enus/80e06924-e6c0-4b82-81cf-e99ccd77d857/data_processing_engine/images/data_processing_engine_compute_relative_option.png)

Use these functions when you create formulas to compute relative transformation.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-data_processing_engine-264-0-0-production-enus/80e06924-e6c0-4b82-81cf-e99ccd77d857/images/icon_note.png)

Note A formula can include only one Compute Relative function.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:14.577259475218657%">
          <col style="width:22.303206997084544%">
          <col style="width:22.303206997084544%">
          <col style="width:22.303206997084544%">
          <col style="width:18.513119533527693%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1839">Function</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1842">Description</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1845">Supported Runtime</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1848">Syntax</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10055e1851">Example Syntax</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1839 ">ARRAYJOIN</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1842 ">Converts multivalue data into a string with elements separated by the specified
              delimiter.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1845 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1848 ">
              <p><code>ARRAYJOIN(field) </code></p>
              <p style="margin-bottom:0;">field is the multivalue field to be
                converted to a string.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1851 "><code>ARRAYJOIN({Type})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1839 ">COLLECTLIST</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1842 ">Returns multivalue data containing duplicates.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1845 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1848 ">
              <p><code>COLLECTLIST(field) </code></p>
              <p style="margin-bottom:0;">field is the multivalue field whose
                values you want to collect into an array. The function will take the value from
                this field for each record in the defined group. </p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1851 "><code>COLLECTLIST({Type})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1839 ">COLLECTSET</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1842 ">Returns multivalue data without duplicates.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1845 "><span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1848 ">
              <p><code>COLLECTSET(field)</code></p>
              <p style="margin-bottom:0;">field is the multivalue field whose values
                you want to collect into a unique array. The function will only store each
                distinct value from this field once.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1851 "><code>COLLECTSET({Type})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1839 ">CURRENT</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1842 ">Returns the value of a specified field from the current row in a
              partition.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1845 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1848 ">
              <p><code>CURRENT(field) </code></p>
              <p style="margin-bottom:0;">field is the field whose value you want to
                retrieve for the current row.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1851 "><code>CURRENT ({AnnualRevenue})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1839 ">DENSERANK</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1842 ">Returns the dense rank of the current row in a partition.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1845 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1848 "><code>DENSERANK()</code></td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1851 "><code>DENSERANK()</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1839 ">FIRSTVALUE</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1842 ">Returns the first value of a specified field in a partition.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1845 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1848 ">
              <p><code>FIRSTVALUE(field) </code></p>
              <p style="margin-bottom:0;">field is the field whose value you want
                to retrieve from the first record in the partition.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1851 "><code>FIRSTVALUE({Name})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1839 ">LAG</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1842 ">Returns the value of a specified field from the previous row in a
              partition.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1845 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1848 ">
              <p><code>LAG(field)</code></p>
              <p style="margin-bottom:0;">field is the field whose value you want to
                retrieve from a previous record.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1851 "><code>LAG({AnnualRevenue} ) </code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1839 ">LASTVALUE</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1842 ">Returns the last value of a specified field in a partition.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1845 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1848 ">
              <p><code>LASTVALUE(field)</code></p>
              <p style="margin-bottom:0;">field is the field whose value you want to
                retrieve from the last record in the partition.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1851 "><code>LASTVALUE({Name})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1839 ">LEAD</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1842 ">Returns the value of a specified field from the next row in a
              partition.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1845 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1848 ">
              <p><code>LEAD(field)</code></p>
              <p style="margin-bottom:0;">field is the field whose value you want to
                retrieve from a subsequent record.</p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1851 "><code>LEAD({AnnualRevenue})</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1839 ">RANK</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1842 ">Returns the rank of the current row in a partition.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1845 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1848 "><code>RANK()</code></td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1851 "><code>RANK()</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1839 ">ROWNUMBER</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1842 ">Returns the serial number of the current row in a partition.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1845 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1848 "><code>ROWNUMBER()</code></td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1851 "><code>ROWNUMBER()</code></td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1839 ">SUM</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1842 ">Returns the cumulative sum of all the rows in a partition.</td>

            <td data-label="Supported Runtime" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1845 ">CRM Analytics and <span>Data 360</span></td>

            <td data-label="Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1848 ">
              <p><code>SUM(field)</code></p>
              <p style="margin-bottom:0;">field is the number field whose values you want
                to add together. </p>
            </td>

            <td data-label="Example Syntax" class="slds-cell-wrap" style="vertical-align:top;" headers="d10055e1851 "><code>SUM({AnnualRevenue})</code></td>

          </tr>
        </tbody>
      </table>

When the compute relative transformation option is enabled, the result of a formula node includes all the source fields and formula fields that you create.

![Compute Relative Transformation](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-data_processing_engine-264-0-0-production-enus/80e06924-e6c0-4b82-81cf-e99ccd77d857/data_processing_engine/images/data_processing_engine_compute_relative.png)

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-data_processing_engine-264-0-0-production-enus/80e06924-e6c0-4b82-81cf-e99ccd77d857/images/icon_example.png)

Example A company wants to partition accounts by the parent account and order the partitioned data by the created date. The company also wants to know the difference between the previous annual revenue and the current annual revenue of each account. So the company uses two Compute Relative functions to partition Account records by the ParentId field and order the partitioned records by the CreatedDate field. To find the previous annual revenue, the company uses LAG({AnnualRevenue}). To find the current annual revenue, the company uses CURRENT({AnnualRevenue}). To calculate the difference, the company uses these two formulas in another formula node.

- **[Configure End of Month Logic in Formula Nodes](https://help.salesforce.com/s/articleView?id=ind.dpe_configure_end_of_month_logic_in_formula_nodes.htm&release=264.0.0&type=5)**  
    When adding or subtracting months in DPE formula nodes, standard date calculations may not accurately land on the last day of the target month. This occurs because month lengths vary, and leap years affect February. For example, subtracting one month from April 30th (the end of the month) typically results in March 30th, which is not the last day of March. However, your business rule might require the date to be March 31st (or February 29th/28th if applicable).