Forum Discussion

rhcentennialh's avatar
rhcentennialh
Helper II
7 years ago

Find & List Unique Values Between Two Columns

I am needing to identify and then list unique values that have been captured in Column A but not in Column B on a separate column. This appears to be a simple process but for some reason i have not found the solution.

 

Below is a simple illustration, the data set I am working with is much larger +100,000 rows

 

Column AColumn BSolution
21139986001B
125478452856
001B21134568
28561254 
4568001A 

10 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    You can create a new table with:

    Table = 
    EXCEPT( values( Table1[Column1]), values( Table1[Column2] ))

    Depending on your goals, you could also just use that a table function in a measure, so that it's only called when used.

     

    Also could do this in powery query 

     

    • rhcentennialh's avatar
      rhcentennialh
      Helper II

      I should have mentioned this previously, I generated/calculated Column A & B from a parent column (Column C).

      Is there a way to show the unique values between A & B without creating tables seeing as Column A & B are calculated columns?

      • Anonymous's avatar
        Anonymous
        Not applicable

        I dont see why not. Any chance you upload some sample data?