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 calculate the minimum value of rows without conditionals, use the MIN function. See MIN Function.

D s
snippetBasic

MINIF
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextpivot value:
minif(testScores, testCount >= 3) group:studentId limit:1

...

minif(testScores, testCount >= 3)

Output: Returns the minimum of the testScores

...

 column when the testCount is greater than or equal to 3.

...

D s
snippetSyntax

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

minif(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

...