# Function min

min( attribute, name?, format?): BaseMeasure

Creates a min aggregation measure over the given attribute.

# Parameters

Parameter Type Description
attribute Attribute Attribute to aggregate
name? string Optional name for the new measure
format? string Optional numeric formatting to apply using a Numeral.js format string. Can only be used for explicit queries. Cannot be used in charts, tables, etc.

# Returns

BaseMeasure

A measure instance

# Example

Calculate the minimum cost across all items in a category from the Sample Ecommerce data model.

measureFactory.min(DM.Commerce.Cost)