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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
josephliverpool
Frequent Visitor

Power BI Connecting to a Folder containing spreadsheets

Hi!

 

I have connected to a folder in Power BI which contains spreadsheets, these are updated every hour automatically and the gateway automatically adds these spreadsheets to my dataset.

 

The only problem is that between 1 and 4 am, the spreadsheets are blank so they don't have any headers at all so it is crashing my dashboard.

 

In Power Query, is there anyway to remove the spreadsheets that are blank? I was thinking that this could potentially be based on row count perhaps? As in anything with row count > 0?

 

I just have no idea how to implement this!

1 ACCEPTED SOLUTION
Omid_Motamedise
Super User
Super User

Yes and Table.IsEmpthy can be used.

Consider the next example inclucing two blank source and 1 non blank.


 

Omid_Motamedise_0-1728340463507.png

 

 

you can add a new column by the next formula

Table.IsEmpty([Data])

 

to reach tru and false for empthy tables then filtter the empthy one

 

Omid_Motamedise_1-1728340545822.png

 

 

.

 

 

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @josephliverpool 

Did the solution Omid_Motamedise  and lbendlin  offered help you solve the problem, if them help, you can consider to accept them as solutions so that more users can refer to.

 

Best Regards!

Yolo Zhu

Omid_Motamedise
Super User
Super User

Yes and Table.IsEmpthy can be used.

Consider the next example inclucing two blank source and 1 non blank.


 

Omid_Motamedise_0-1728340463507.png

 

 

you can add a new column by the next formula

Table.IsEmpty([Data])

 

to reach tru and false for empthy tables then filtter the empthy one

 

Omid_Motamedise_1-1728340545822.png

 

 

.

 

 

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h
lbendlin
Super User
Super User

yes, that sounds like a viable approach.  You can also consider trying to read the sheet and in case of failure return an empty table instead (can be a single column).

 

Read about try ... otherwise ...

 

Show your Power Query code if you like more assistance.

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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