Forum Discussion

MaryDay's avatar
MaryDay
Frequent Visitor
7 years ago
Solved

Duplicate column filter

Hello!   I have a column with duplicate values. I need to write a DAX code, that will produce 'true' if the value is repeated and 'false' if it is unique.   Example:   1   false 2   true 2   ...
  • tex628's avatar
    tex628
    7 years ago

    I believe all you need to do is add another earlier statement related to the 2nd column.

    Column =
    If (
    Calculate( Countrows( 'Table' ) ,
    All( 'Table' ) [Column] = Earlier( [Column] ) ,
    [Column2] = Earlier( [Column2] ) ) = 1 , "False" , "True" )