Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi group,
I have written a Power Query project to merge different files from different folders.
I'm facing an issue if one of the folders is empty.
For each folder, I have done 2 queries
I would like to do a test before the second query like this
not(Table.IsEmpty(previousquery))
The test works but I just don't know how to write my query if the test returns true or false
Any idea?
Solved! Go to Solution.
Hi,
Finally, I have found the way to write my condition and the 2 branches
let
Source = if not(Table.IsEmpty(Query2)) then
Table.Combine({Query1, Query2})
else
Query1,
Hi,
Finally, I have found the way to write my condition and the 2 branches
let
Source = if not(Table.IsEmpty(Query2)) then
Table.Combine({Query1, Query2})
else
Query1,
= if not(Table.IsEmpty(previousquery)) then QueryName else OtherQueryName
--Nate
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 7 | |
| 5 | |
| 3 |