Conga Product Documentation

Welcome to the new doc site. Some of your old bookmarks will no longer work. Please use the search bar to find your desired topic.

Show Page Sections

Formulas

Reminder:

  • Formula allows to implement business rules using pre-defined operators
  • Quote header is made up of tabs which fields can be computed by means of a formula.
  • Quote spreadsheet is made up of columns and total cells whose associated values can be computed by means of a formula.
  • Update of spreadsheet columns can trigger Up propagations and/or Down propagations rules which can be computed by means of a formula.
    information: Formula are directly input in the corresponding property pop-up.

Understanding the syntax:



Getting contextual settings

The table below details the variables automatically initialized before the execution of the formula:



Note: In formulas, constant values must be enclosed in matching single quotes ('). E.g. ‘My Value’ (and not “My Value” )

Computation Operator Table:

The table below details the formula operators in accordance with the different uses cases (header fields, spreadsheet columns, spreadsheet total cells):

Notice:

  • Operators with condition:
  • Fields & Total cells: if the condition is satisfied, its result becomes the value of the cell, otherwise, the cell takes the value 'elsevalue'
  • Columns: only the cell lines fulfilling the condition are used in the calculation
  • Formula used for columns: can only use column values of the current line (colName[aliasLine])
  • "FCT" stands for "Field, Column or Total cell". One of these three indicators precedes every syntax item.
OPERATOREXPLANATIONSYNTAX (FCT)
+, -, *, /Regular Arithmetic OperatorF: aliasName1 + aliasName2 (same with -, /, *)
C: colName1[aliasLine] + colName2[aliasLine] (same with -, /, *)
T: totCellName1 + totCellName2 (same with -, /, *)
SUMSum of 2 operandsF: SUM(aliasName1, aliasName2) --> (eqv, to a + b)
C: SUM(colName1[aliasLine], colName2[aliasLine]) --> (eqv, to a + b)
T: SUM(totCellName1, totCellName2) --> (eqv, to a + b)
Sum of a column of valuesT: SUM("colName1")
SUM_IFSum of 2 operands with conditionF: SUM_IF(aliasName1, aliasName2, condition, elsevalue)
C: SUM_IF(colName1[aliasLine], colName2[aliasLine], condition, elsevalue)
T: SUM_IF(totCellName1, totCellName2, condition, elsevalue)
Sum of a column of values with conditionT: SUM_IF("colName1", "condition")
SUM_PRODProduct sum of 2 columns of valuesT: SUM_PROD("colName1", "colName2")
SUM_PROD_IFProduct sum of 2 columns of values with conditionT: SUM_PROD_IF("colName1", "colName2", "condition")
AVERAGEAverage of 2 operandsF: AVERAGE(aliasName1,aliasName2)
C: AVERAGE(colName1[aliasLine], colName2[aliasLine])
T: AVERAGE(totCellName1, totCellName2)
Average of a column with conditionT: AVERAGE("colName1")
AVERAGE_IFAverage of two operands with conditionF: AVERAGE_IF(aliasName1, aliasName2, condition, elsevalue)
C: AVERAGE_IF(colName1[aliasLine], colName2[aliasLine], condition, elsevalue)
T: AVERAGE_IF(totCellName1, totCellName2, condition, elsevalue)
Average of a column with conditionT: AVERAGE_IF("colName1", "condition")
MINMinimum of 2 operandsF: MIN(aliasName1, aliasName2)
C: MIN(colName1[aliasLine], colName2[aliasLine])
T: MIN(totCellName1, totCellName2)
Minimum of a column of valuesT: MIN("colName1")
MIN_IFMinimum of 2 operands with conditionF: MIN_IF(aliasName1, aliasName2, condition, elsevalue)
C: MIN_IF(colName1[aliasLine], colName2[aliasLine], condition, elsevalue)
T: MIN_IF(totCellName1, totCellName2, condition, elsevalue)
Minimum of a column of values with conditionT: MIN_IF("colName1")
MAXMaximum of 2 operandsF: MAX(aliasName1, aliasName2)
C: MAX(colName1[aliasLine], colName2[aliasLine])
T: MAX(totCellName1, totCellName2)
Maximum of a column of valuesT: MAX("colName1")
MAX_IFMaximum of 2 operands with conditionF: MAX_IF(aliasName1, aliasName2, condition, elsevalue)
C: MAX_IF(colName1[aliasLine], colName2[aliasLine], condition, elsevalue)
T: MAX_IF(totCellName1, totCellName2, condition, elsevalue)
Maximum of a column of values with conditionT: MAX_IF("colName1", "condition")
VALUE_IFValue (of the operand) with conditionF: VALUE_IF (aliasName1, condition, elsevalue)
C: VALUE_IF(colName1[aliasLine], condition, elsevalue)
T: VALUE_IF(totCellName1, condition, elsevalue)

Up Propagation Operator Table:

Table below details the operators available in formula of type UpPropagation:





Down Propagation Operator Table:

Table below details the operators available in formula of type DownPropagation: