title: Skip a record if empty
body: <p>I've created a function that cleans my data of extra columns with null values. There should always be 15 columns after this however occasionally there is more or less and when this happens those tables should just be removed.</p>
  
  <p>I've tried just skipping all those rows and returning an empty table but when I try to expand those tables I get an error "Cannot convert the value false to type Number."</p>
  
  <pre><code>(tbl as table) =&gt;
      let
          ColumnNames = Table.ColumnNames(tbl),
          RemoveNullColumns = Table.SelectColumns(tbl, List.Select(ColumnNames, each List.MatchesAny(Table.Column(tbl, _), each _ &lt;&gt; null))),
          CheckColumns = Table.Skip(RemoveNullColumns, Table.ColumnCount(RemoveNullColumns) &lt;&gt; 15)
      in
          CheckColumns
  </code></pre>