Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The formula editor is located at the top of a worksheet within a workbook. Select a column on a worksheet and apply a formula with supported Datameer functions and operators.

Formulas can be added manually or using Datameer's Formula Builder. An auto-complete feature gives you the ability to visualize and complete formulas efficiently.

...

A formula can only reference columns from it's own worksheet and one other worksheet in the workbook. Referencing columns from different worksheets is possible after a join sheet has first been created. 

...

Writing a function in the formula editor

Datameer's supported functions.

Enter a function name into the formula editor (case insensitive) with variables separated by a semicolon within parentheses.

Example:

Result explained
GE(#apache_log!status;400)

The Greater Than or Equal To function is being used comparing the "status" column from the "apache_log" worksheet
to see if the values are greater than or equal to the constant integer "400".

...

ExampleResults explained
IF(EQUALS(#apache_log!status;400);"Bad Request";"other")The IF function is being used with the Equals function as one of the variables.

Anchor
formula_builder
formula_builder
Creating formulas using the formula builder

You can create formulas on worksheets that are editable. When you click the data area of a column that has a formula associated with it, the formula displays above the workbook in the Fx bar. You can also create a new sheet and create formulas that reference fields from other sheets. Click the  Fx  button on the formula line to display the formula builder. (As of Datameer X 7.2the formula builder is located in the worksheet inspector.)

To create a formula using the Formula Builder:

...

The resulting function displays next to the fx icon. To learn more, see using the Formula Builder.

To use operators in a formula:

...

  1. Click the data area in a column and the current formula if one exists displays above the workbook.
  2. Create or edit the formula using regular expressions press Enter.

See Using Regular Expressions to see some examples. Datameer X offers an API to extend the built-in formulas. See the Developer's Guide to learn more.

Editing formulas

...