Table.Min Function in Power Query

The Table.Min function returns the smallest row from a table using a comparisonCriteria. If the table is empty, the optional default value is returned.

Syntax

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

Example: Find the smallest row.

Power Query M

let
  MyTable = Table.FromRecords(
    {
      [CustomerID = 1, Name = "Ashish", Marks = 568], 
      [CustomerID = 2, Name = "Katrina", Marks = 855], 
      [CustomerID = 3, Name = "Alia", Marks = 380], 
      [CustomerID = 4, Name = "Vicky", Marks = 458], 
      [CustomerID = 5, Name = "Mohini", Marks = 278], 
      [CustomerID = 6, Name = "Meenakshi", Marks = 289], 
      [CustomerID = 7, Name = "Esha", Marks = 875], 
      [CustomerID = 8, Name = "Anjali", Marks = 380]
    }
  ), 
  #"Return Output" = Table.Min(MyTable, "Marks")
in
  #"Return Output"   

The output of the above code is shown below:

Table.Min in Power Query