Forum Discussion

waltw's avatar
waltw
Regular Visitor
9 years ago
Solved

Count duplicate values across multiple columns

Hello,   I am new to Power BI and am interested in understanding how to identify duplicates across multiple columns.   In Excel, I used the created a Duplicates column and add the formula below. ...
  • MattAllington's avatar
    MattAllington
    9 years ago

    Maybe this is just language, but if you want to keep the dupilcates and count them, then surely you will end up with this.

     

                                First Name     Last Name  Address                               Number of Duplicates

    Row XYZ               John               Smith          123 Sandpiper Lane             3

    Row XYZ               John               Smith          123 Sandpiper Lane             3

    Row XYZ               John               Smith          123 Sandpiper Lane             3

     

    If you want to remove the duplciates and keep 1 copy of every row, then you will end up with this.

     

                                First Name     Last Name  Address                               Number of Duplicates

    Row XYZ               John               Smith          123 Sandpiper Lane             3

     

    You can also do this in Power Query.  Just select Group By, and then select Count.  The button is on the home tab to the right hand side of the menu

  • waltw's avatar
    waltw
    9 years ago

    Yes, Advanced Grouping works. Thank you