Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Devesa_
Frequent Visitor

Table.Combine after checking table is not null

Hi everyone,
I am extraction information in chunks, and the idea is appending them all toghether in a new query.
The number of values differs so for some periods I'll need more or less queries (in this example Advisories10 to 14 are empty).

The issue is that when I try to append a query which is empty an the append fails.

Any idea of how to perform a check and then append only the non blank queries?

Devesa__0-1653298585446.png

 

Devesa__1-1653298697319.png

 

 

Thanks!

 

 

1 ACCEPTED SOLUTION
Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

In the below code, you need to define your ListOfTables to be combined which are name of Queries. So, just modify the first line. So your first line will be like (you will need to put all 14 queries here)

ListOfTables = {Advisories1, Advisories2, Advisories3,.......Advisories14}

 

let
    ListOfTables = {Table1, Table2, Table3},
    TableOfTablesToBeCombined = Table.RemoveRowsWithErrors(Table.FromList(ListOfTables, Splitter.SplitByNothing()), {"Column1"}),
    ListOfTablesToBeCombined = TableOfTablesToBeCombined[Column1],
    Result = Table.Combine(ListOfTablesToBeCombined)
in
    Result

 

 

View solution in original post

2 REPLIES 2
Devesa_
Frequent Visitor

Great!
Thanks a lot!

Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

In the below code, you need to define your ListOfTables to be combined which are name of Queries. So, just modify the first line. So your first line will be like (you will need to put all 14 queries here)

ListOfTables = {Advisories1, Advisories2, Advisories3,.......Advisories14}

 

let
    ListOfTables = {Table1, Table2, Table3},
    TableOfTablesToBeCombined = Table.RemoveRowsWithErrors(Table.FromList(ListOfTables, Splitter.SplitByNothing()), {"Column1"}),
    ListOfTablesToBeCombined = TableOfTablesToBeCombined[Column1],
    Result = Table.Combine(ListOfTablesToBeCombined)
in
    Result

 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors