Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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!
Solved! Go to Solution.
Yes and Table.IsEmpthy can be used.
Consider the next example inclucing two blank source and 1 non blank.
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
.
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
Yes and Table.IsEmpthy can be used.
Consider the next example inclucing two blank source and 1 non blank.
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
.
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 6 | |
| 5 |