OpenBI Docs Buy

MIN

The smallest value in a column, or the smaller of two values (a blank comparing as zero).

Group: Aggregation. Compatible with DAX.

Syntax

MIN ( <column> )
MIN ( <expression1>, <expression2> )
ParameterTypeDescription
columnColumnThe column whose smallest value is wanted: numbers, dates or text.
expression1ValueThe first of two values to compare.
expression2ValueThe second of two values to compare.

Returns

Same type as its values. The smallest value: of the column's cells, or of the two values given.

Remarks

  • With a column, blanks are left out; with no value in the filter context the result is BLANK.
  • With two values, a blank compares as zero: MIN ( 3, BLANK () ) is blank.
  • Text is compared without regard to case. Two values of different types, such as a number and a text, are an error.
  • For the smallest value of an expression over rows, use MINX.

Examples

The first month and the smallest month

EVALUATE
ROW (
    "First month", MIN ( Sales[Month] ),
    "Fewest liters in a month", MIN ( Sales[Liters] )
)
First monthFewest liters in a month
2023-11-0147

The smaller of two values

EVALUATE
ROW (
    "Of 4 and 9", MIN ( 4, 9 ),
    "Of 3 and blank", MIN ( 3, BLANK () )
)
Of 4 and 9Of 3 and blank
4(blank)

MINX, MINA, MAX, FIRSTDATE.

Last updated · OpenBI Studio 0.3.74