Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

comparing multiple values in two columns and displaying unique and matching values

Hey everyone,   I have two columns of ids that are from two different reports, I know for sure that there are more values in one column than the other but I want to know which are the Ids that aren...
  • AlB's avatar
    6 years ago

    Hi Anonymous 

    For the ones present in the first but not on the second column, create a new, one-column  calculated table:

     

    NewTable =
    EXCEPT ( DISTINCT ( Table1[Coulmn1] ), DISTINCT ( Table2[Coulmn2] ) )

    Please mark the question solved when done and consider giving kudos if posts are helpful.

    Cheers  Datanaut

  • AlB's avatar
    AlB
    6 years ago

    Anonymous 

    The unique values are from the first table in the EXCEPT( )

    EXCEPT(Table1, Table2 ) gives you the values that are present in Table1 but not present in Table2. You can simply do 

    EXCEPT(Table2, Table1 ) if you want the values present in Table2 but not present in Table1

     

    Please mark the question solved when done and consider giving kudos if posts are helpful.

    Cheers  Datanaut