Forum Discussion

leroy773's avatar
leroy773
Helper II
8 years ago
Solved

Remove rows based on duplicate value in column

Looking for a DAX formula to remove rows based on duplicate serial numbers.  I currently have a data table with multiple rows.  Some of the rows have the same serial number.  I would like to count th...
  • Rfranca's avatar
    Rfranca
    8 years ago

    leroy773 mickeydjw

     

    Oops!

    Got it,

     

     

    Tt_SerialNumber_Replace = CALCULATE(
    DISTINCTCOUNT(Planilha1[serial Number]);
    filter(ALL(Planilha1);Planilha1[Part Replace]=1))

     

     

    Please try and test using it. And please mark the right answer as answer if your issue has been resolved, otherwise, please feel free to ask if you have any other issue.
     
    Best Regards,
    Rfranca