Table.Min

 

This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.

Returns the smallest row or rows from a table using a comparisonCriteria.

Table.Min(table as table, comparisonCriteria as any, optional default as any) as table  

ArgumentDescription
tableThe Table to check.
comparisonCriteriaSmallest row or rows comparison criteria.
optional defaultDefault value.
  • Table.Min is similar to List.Min but requires a table as input.
let  
  
    Employees = Table.FromRecords(  
  
        {[Name="Bill",   Level=7,  Salary=100000],  
  
        [Name="Barb",   Level=8,  Salary=150000],  
  
        [Name="Andrew", Level=6,  Salary=85000],  
  
        [Name="Nikki",  Level=5,  Salary=75000],  
  
        [Name="Margo",  Level=3,  Salary=45000],  
  
        [Name="Jeff",   Level=10, Salary=200000]},  
  
    type table [  
  
        Name = text,  
  
        Level = number,  
  
        Salary = number  
  
])  
  
in  
  
    Table.Min(Employees, "Salary")  
  
equals [Name = "Margo", Level = 3, Salary = 45000]  

NameMargo
Level3
Salary45000
Show: