This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
I have two queries that I'd like to merge together. They have the same columns. The problem is that 1 query has gaps in some of the data. Here is an example:
Would I be able to merge these queries to fill in the 0's from table 1? Is it possible to delete "Apple" and "Banana" from table 1 and do a Full Outer Row merge?
Thanks!
Solved! Go to Solution.
You can append three pieces together.
Sample query with Table1 and Table2 definitions embedded:
let
Table1 =
Table.FromRows(
{{"Apple", 1, null}, {"Banana", 2, null }, {"Orange", 1, null}, {"Peach", 4, 4}, {"Pear", 2, 2}},
type table [Fruit = text, Price = number, Weight = number]
),
Table2 =
Table.FromRows(
{{"Apple", 1, 1}, {"Banana", 2, 2 }, {"Watermelon", 2, 3}},
type table [Fruit = text, Price = number, Weight = number]
),
Appended = Table.Combine(
{
Table.NestedJoin(Table2, {"Fruit"}, Table.SelectRows(Table1, each [Weight] = null), {"Fruit"}, "Merge", JoinKind.Inner),
Table.NestedJoin(Table1, {"Fruit"}, Table2, {"Fruit"}, "Merge", JoinKind.LeftAnti),
Table.NestedJoin(Table2, {"Fruit"}, Table1, {"Fruit"}, "Merge", JoinKind.LeftAnti)
}),
#"Removed Columns" = Table.RemoveColumns(Appended,{"Merge"})
in
#"Removed Columns"
Hi, @RickWald
May I ask if your problem has been solved? Is the above post helpful to you?
The solution provided by @AlexisOlson above can work for you.
If all your blank items can find matching values in another table, then you can even more easily get the results by appending the data from the two tables and then filtering out the blank rows.
Result:
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can append three pieces together.
Sample query with Table1 and Table2 definitions embedded:
let
Table1 =
Table.FromRows(
{{"Apple", 1, null}, {"Banana", 2, null }, {"Orange", 1, null}, {"Peach", 4, 4}, {"Pear", 2, 2}},
type table [Fruit = text, Price = number, Weight = number]
),
Table2 =
Table.FromRows(
{{"Apple", 1, 1}, {"Banana", 2, 2 }, {"Watermelon", 2, 3}},
type table [Fruit = text, Price = number, Weight = number]
),
Appended = Table.Combine(
{
Table.NestedJoin(Table2, {"Fruit"}, Table.SelectRows(Table1, each [Weight] = null), {"Fruit"}, "Merge", JoinKind.Inner),
Table.NestedJoin(Table1, {"Fruit"}, Table2, {"Fruit"}, "Merge", JoinKind.LeftAnti),
Table.NestedJoin(Table2, {"Fruit"}, Table1, {"Fruit"}, "Merge", JoinKind.LeftAnti)
}),
#"Removed Columns" = Table.RemoveColumns(Appended,{"Merge"})
in
#"Removed Columns"
Thank you Alexis!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |