List.IsEmpty

List.IsEmpty is a Power Query M function that checks if a list is empty. The function returns true if the list is empty, and false if it contains values.

Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365

Syntax

List.IsEmpty( list as list ) as logical

Description

Returns true if the list, list, contains no values (length 0). If the list contains values (length > 0), returns false.

Examples

Find if the list {} is empty.

// Output: true
List.IsEmpty( {} )

Find if the list {1, 2} is empty.

// Output: false
List.IsEmpty( {1, 2} )

Other functions related to List.IsEmpty are:

BI Gorilla Youtube Channel

Last update: August 25, 2023 | Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/list-isempty
© 2023 BI Gorilla. All rights reserved. Content derived from Microsoft documentation is property of Microsoft Corp.