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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Super User
Super User

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
Super User
Super User

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors