Customize

Calculate Lowest Fields in Table by Providing Conditions

Summary

Calculate the lowest value of the table rows' fields matching the specified conditions.
You can reuse the result of the calculation in other Actions.

How to use

Parameters

Set Filed to Calculate, Field for Judgement, Criteria, Comparison Value, Target Field (Optional), and If no rows meet the conditions.

Field to Calculate

Select the field in the table to calculate minimum. This parameter accepts the following field types:

  • Number
  • Calculated
  • Date
  • Time
  • Date and time

The “Calculated” field type must be in numeric format. The “Calculated” field in Date, Time, and Date & time formats is not supported. It supports regular “Date”, “Time”, and “Date and time” field types that are not of the “Calculated” type.

Field for Judgement

Select the fields to be used for condition evaluation from the fields in the table.

Criteria

Select a criteria from the options.

Comparison value

Enter the value to compare the field’s value.
The parameter accepts the following inputs:

  • Direct input
  • Formulas (for details, refer to How to Write Formulas)
    • However, you cannot reference fields in the table from this expression.

Target Field (Optional)

Use this parameter to set the results to another field. You can leave this parameter empty to use the calculation result in another action without setting it to any field.

This parameter accepts the following field types: Fields in tables cannot be selected.

  • Text
  • Number
  • Text area
  • Rich text
  • Date
  • Time
  • Date and time

If the field type of the set destination does not match the type of the calculation result, an error will occur at runtime.

If no rows meet the conditions

Select the action when there are no rows that meet the criteria. Based on the selection made, the value and result value for the action entered in the “Target Field” when no rows meet the conditions will be as follows:

Parameter Value Value to be set in the “Target Field” Action Result
Set nothing Do not change the value of the field undefined
Set blank Clear the value undefined
Set to zero 0 0
Set NaN NaN NaN

If there were no rows in the table, it will be considered as “no rows matching the condition” and will result in the action selected here.

Restrictions

  • The “Field to Calculate” field in Date, Time, and Date & time formats is not supported.