Syntax
Table.LastN(table as table, countOrCondition as any) as table
Description
Returns the last row(s) from the table, table, depending on the value of countOrCondition:
Reference Data
https://docs.microsoft.com/en-us/powerquery-m/power-query-m-function-reference