Page tree

Versions Compared


  • 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 maximum value of rows without conditionals, use the MAX function. See MAX Function.

D s

D code

pivot value: MAXIF(testScores, testCount >= 3) group:studentId limit:1

Output: Generates a two-column table containing the unique values for studentId and the Output: Returns the maximum of the testScores column for that studentId value when  column when the testCount is greater than or equal to 3. The limit parameter defines the maximum number of output columns.

D s

D code

pivot value:MAXIF(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