cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
webportal Member
Member

Power Query M: Check if column contains emty table

In Power Query, my table has a column "Data" with tables.

A lot of these tables are empty, so I'm looking for a way to check which are empty and create an additional column "NotEmpty" I can use as a filter.

 

Capturar.JPG

 

I'm trying to add this step with function Table.IsEmpty but it's not working.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Power Query M: Check if column contains emty table

Hi @webportal

 

Try

 

=

Table.IsEmpty([Data])
3 REPLIES 3
Super User
Super User

Re: Power Query M: Check if column contains emty table

Hi @webportal

 

Try

 

=

Table.IsEmpty([Data])
webportal Member
Member

Re: Power Query M: Check if column contains emty table

Yes, so simple :-)

Table.AddColumn(#"Colunas Removidas", "Personalizado", each if Table.IsEmpty([Data]) then "TabelaVazia" else "TabelaComDados")
danno Regular Visitor
Regular Visitor

Re: Power Query M: Check if column contains emty table