Building Formulae for Use in Action Views

When adding columns to an action view template, you can add columns to contain formulae. For example, you might want a column to show the variance between budget and actual figures.

  1. Click Add to add a column to the template.
  2. In the Type column, click Down arrow to see the picklist, and click Formula.
  3. In the Title column enter a title that makes the meaning of the calculation clear to other users.
  4. Select the Mode as None or Sum:
    • None: applies the formula to the subtotal and grand total rows
    • Sum: the resultant values calculated by the formula are summed to form the subtotal and grand total rows
  5. In the Formula column click Formula Builder icon to build the formula in a separate pane:

    Formula Builder
  6. Drag and drop the Add, Subtract, Multiply, Divide operators, and parentheses ( ), and these components into the drop zone:
    • Number: a numeric value that you enter manually.
    • Field: a numeric field that has been included in the underlying dataview.
    • Column: any presentable column that has been added to the action view template. This must be a filtered column or other formulae.
    You see Success icon when the item is in the drop zone and you can drop it.
  7. When you add a component to the drop zone, a field appears for you to supply the relevant value. When you have supplied a value, you can edit it by clicking the pencil icon.
  8. Drag more operators into the expression to build more complex formulae.
  9. You can remove an item from the formula by dragging it to the gray area at the top of the Formula popup. You can also rearrange the formula by dragging items and dropping them elsewhere within the expression.
  10. To remove all items from the drop zone click Clear, and to return to the last saved version click Reset.
  11. When you are happy with the formula, click OK to save it.

Examples

For example, you may have filtered Opportunity Amount based on Account as shown in About Column Filters where you create three filtered columns titled Hecate Spain, Hecate UK, and Hecate US. You might want to create a formula column that sums those three columns to get the opportunity amount for all companies. The formula to do this is:

Example Formula 1: opportunity amount for three companies

If you have filtered fuel costs and business mileage based on each quarter, you can create a formula to calculate the average cost per mile for each quarter. The formula for Quarter 1 is:

Example Formula 2: average cost per mile for each quarter