Hi @ValeriaBreve ,
According to your description, you want to do a conditional merge queries. Here's my solution.
In my understanding, for null value in TableB, after merge queries with TableA, you want to return blank instead of 40(Sales for null in TableA).
Here's the original code when doing the general merge. Simply replace the three parameter in the Table.NestedJoin-"TableA" to "Table.SelectRows(#"TableA",each [ID]<>null)".
Get the correct result:
I attach my sample below for your reference.
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.