Table.IsEmpty

About

Returns true if the table does not contain any rows.

Syntax

Table.IsEmpty(table as table) as logical  

Arguments

Argument Description
table The Table to check.

Example

let  
  
    emptyTable = Table.FromRows({}),  
  
     tableValue = Table.FromRows({{1,"Bob", "123-4567"}, {2,"Jim", "987-6543"}}, {"ProductID", "ProductName", "UnitPrice"})  
  
in  
  
[  
  
    IsEmptyTest1 = Table.IsEmpty(emptyTable),  
  
    IsEmptyTest2 = Table.IsEmpty(tableValue),  
  
    RowCount = Table.RowCount(tableValue),  
  
    ColumnCount = Table.ColumnCount(tableValue)  
  
]  
  
equals  
IsEmptyTest1 true
IsEmptyTest2 false
RowCount 2
ColumnCount 3