Forum Discussion

ArvindJha's avatar
ArvindJha
Helper III
1 year ago
Solved

Full Outer Join Handling Null Values in common fields

Hello Team,

 

I do a full outer join , results in null values in some of the columns.

I would like to have a single column with all values for all the common columns.

What is the best approach?

 

ABCD
1100200500
2101201501
3102202502
4103203503
ABCE
1100200600
2101201601
3102202602
5104204604
  • Hii ArvindJha 

    Load the Data. Go to Transform Data.

    1)

    2)

     

    Output:

    Please Try this.

    I hope this will help you.

  • Load both tables into Power BI and open the Power Query Editor.
    Perform a full outer join using "Merge Queries" on your key column (Column A).
    Expand the merged column to include all relevant columns (B, C, D, E).
    Add a custom column using an if statement to consolidate values. For example

    if [D] <> null then [D] else [E]

    Remove the original D and E columns as needed.
    Click “Close & Apply” to load the transformed data.

    💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
    Cheers,
    Kedar
    Connect on LinkedIn

5 Replies

  • Chetan007's avatar
    Chetan007
    Frequent Visitor

    Hii ArvindJha 

    Load the Data. Go to Transform Data.

    1)

    2)

     

    Output:

    Please Try this.

    I hope this will help you.

  • Hello ArvindJha 

    Please clarify the desired outcome you're seeking. Providing sample data or a screenshot of the expected result would be beneficial.

     

    You mentioned attempting a full-outer join, which typically yields multiple columns, yet you require a single column containing all values. This is somewhat confusing; could you please elaborate on your issue?

     

    Thanks,

    Udit

  • Thanks for the response , Expected Outcome

    ABCDE
    1100200500600
    2101201501601
    3102202502602
    4103203503 
    5104204 604
    • Chetan007's avatar
      Chetan007
      Frequent Visitor

      Hii ArvindJha 

      Load the Data. then go to Transform Data.

      1)

      2)

       

      Output:

       

      Please Try This.

      I hope this Will halp You

       

       

  • Load both tables into Power BI and open the Power Query Editor.
    Perform a full outer join using "Merge Queries" on your key column (Column A).
    Expand the merged column to include all relevant columns (B, C, D, E).
    Add a custom column using an if statement to consolidate values. For example

    if [D] <> null then [D] else [E]

    Remove the original D and E columns as needed.
    Click “Close & Apply” to load the transformed data.

    💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
    Cheers,
    Kedar
    Connect on LinkedIn