OpenBI Docs Buy

List.IsEmpty

Whether a list has no items at all.

Group: List. Power Query M has it too: a query that uses it is written as in Power BI.

Syntax

List.IsEmpty(list as list) as logical
ParameterTypeDescription
listlistThe list to test.

Returns

logical. true for {}, false otherwise.

Remarks

  • A list that holds only nulls is not empty: {null} has one item.

Examples

No open orders

List.IsEmpty({})
true

A null is still an item

List.IsEmpty({null})
false

List.Count, Table.IsEmpty.

Last updated · OpenBI Studio 0.3.79