Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version next

...

To perform a simple summing of rows without conditionals, use the SUM function. See SUM Function.

D s
snippetBasic

SUMIF
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextpivot value:
sumif(timeoutSecs, errors >= 1) group:serverAddress limit:1

...

sumif(timeoutSecs, errors >= 1)

Output: Returns the sum of the timeoutSecs

...

 column when the errors value is greater than or equal to 1.

...

D s
snippetSyntax

SUMIF
d-codelang-syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextpivot value:
sumif(col_ref, test_expression) [group:group_col_ref] [limit:limit_count]

sumif(col_ref, test_expression) [group:group_col_ref] [limit:limit_count]


ArgumentRequired?Data TypeDescription
col_refYstringReference to the column you wish to evaluate.
test_expressionYstringExpression that is evaluated. Must resolve to true or false

...