List.MinN
This function will return the minimum value or values in a given list. The parameter 'countOrCondition' can be used to specify either the number of values to return or a filtering condition. If a numb...
List.MinN(list as list, countOrCondition as any, optional comparisonCriteria as any, optional includeNulls as nullable logical) as list
This function will return the minimum value or values in a given list. The parameter 'countOrCondition' can be used to specify either the number of values to return or a filtering condition. If a number is provided, the function will return a list of up to that many items in ascending order. If a condition is specified, the function will return a list of items that initially meet the condition, stopping once an item fails the condition. If 'countOrCondition' is null, the function will simply return the single smallest value in the list. Optionally, a 'comparisonCriteria' parameter can be included to define how values in the list should be compared. If 'comparisonCriteria' is left null, the default comparer will be used.