# OrgChart Now Help Guide

### Audience

###### Overview

An administrator can add custom formulas for display in OrgChart Viewer. Formulas can be displayed in org chart boxes and in the Profile Panel.

This article provides step-by-step instructions on how to create a Dynamic Formula in OrgChart Now Viewer.

###### Accessing the Formula Editor

Select More > Chart Settings, and then select the Chart Builder option from the Settings dropdown menu.

Add a new Dynamic Formula using one of the following three methods:

• Click on the icon associated with the Dynamic Formula heading.

• Click on the icon to import a Dynamic Formula from a different Master Chart.

###### Defining a New Dynamic Formula

The following example demonstrates how to create a formula that averages employee salary for a specific location.

1. Click on the + icon associated with the Dynamic Formula heading. 2. Click on AVERAGEIF from the Formula Type dropdown. The Formula Editor panel will be displayed.

3. Name the formula "Average U.S. Salary," and then configure the formula as it shown below. ### Note

Note: When setting the conditions for this rule, you must use brackets around the Field, a Comparison Operator, and then a valid string or number value.

4. Click Save to close the Formula Editor, and then Save , Refresh , and Exit the Chart Builder panel.

5. Add this custom formula to chart boxes, or to the Profile.

To edit an existing formula:

• Mouse over a formula, and then click on the icon.

To copy an existing formula:

• Mouse over a formula, and then click on the icon.

###### Available Operations

Operation

Description

CountIf

Count the values of a defined field IF they match the formula criteria

SumIf

Sum the values of a defined field IF they match the formula criteria

AverageIf

Average the values of a defined field IF they match the formula criteria

Sum

Sum the values of a defined field

Average

Average the values of a defined field

Concatenate

Concatenate the values defined by the formula rule

Map

Map a defined value when the chosen field matches the formula criteria

Math

Calculate a free-form JavaScript formula

Max

Max value in an org chart branch for a specified field

Min

Min value in an org chart branch for a specified field

###### Comparison & Logic Operators

Operator

Description

==

Equal to

!=

Not equal to

>

Greater than

>=

Great than or equal to

<

Less than

<=

Less than or equal to

?

Ternary operator

&&

Logical and

||

Logical or

!

Logical not