List.First Function in Power Query

The List.First function returns the first value of the list or the specified default if the list is empty. If the list is empty and a default value is not specified, the function returns null.

Syntax

List.First(list as list, optional defaultValue as any) as any

Example: Return the last two items of the list.

Power Query M

let
  Source = {"India", "America", "Canada", "Japan", "Australia", "England"}, 
  Return = List.First(Source)
in
  Return      

The output of the above code is “India”.