Forum Discussion

Stevenson Yu's avatar
Stevenson Yu
Brass Contributor
Jun 13, 2017
Solved

Full Outer Join not working in Version 1707 (Build 8231.1000)

Assume there two tables.

One table contains the following:

  • A
  • B
  • C

The other table contains the following:

  • D
  • E
  • F

A full outer join, after expansion, should create a new table with two columns that look like this:

  • A D
  • A E
  • A F
  • B D
  • B E
  • B F
  • C D
  • C E
  • C F

Instead, this is returned:

  • A null
  • B null
  • C null
  • null D
  • null E
  • null F

 

 

3 Replies

    • Stevenson Yu's avatar
      Stevenson Yu
      Brass Contributor

      Thank you for your reply. After more searching, I realized that I was barking up the wrong tree and there was nothing wrong with Full Outer Join. I was confusing it with a Cartesian Join.

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        No problem. Cartesian join is not predefined, if you'd like to have it you may use something like

         

        ...
         CreateCartesian = Table.AddColumn(stepBefore, "New Column", each Table2),
         ExpandTable = Table.ExpandTableColumn(CreateCartesian, "New Column", {"Column1"}, {"Column2"})
        ...

        other words adding Table2 to each row of Table1

Resources