Forum Discussion

HockeyFan11's avatar
HockeyFan11
Copper Contributor
Oct 09, 2023

Power Query Unmatched Report Showing Null values for all columns when some columns match

Unmatched Report (Left-Anti & Right Anti Appended into one) in Power Query returns Null Value for all columns if one column doesn't match but the others do. Is there a way to return a null value for the column that does not match but to fill in the columns that do match. (In the example below only column 3 is truly unmatched with AA being different from AC.) However, columns 1 and 2 do match, is there a way to have those values displayed instead of shown as null? 

 

 

5 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    HockeyFan11 

    With such technique we remove column with resulting table for Left Anti, in opposite keep only it and expand for Right Anti, only after that append queries.

    In your case it's not clear as well on which columns tables are joined. 

    Better if you give small sample and what you'd like to receive, i.e. to find mismatch for which columns.

    • HockeyFan11's avatar
      HockeyFan11
      Copper Contributor

      SergeiBaklan 

       

      I am trying to find mismatches for all columns shown there, so all columns have been selected. Is there a better way to do this in power query with that objective in mind? I would like to see non-null values if there is a match in one column but not the other. 

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        HockeyFan11 

        Without key columns it's not clear what and how to compare.

        Here

        we have two identical tables but sorted differently. Will we compare row by row or for each row in one table will try to find similar rows in another one? If the latest based on what:

        will we compare first row of first table with first or second row of the second table or with both? 

Resources