Forum Discussion

bhatsuchi's avatar
bhatsuchi
Frequent Visitor
8 years ago
Solved

DAX to count rows with same value for Column A for a value in column B

Id Email 1 [email protected] 2 [email protected] 3 [email protected] 1 [email protected] 1 [email protected] 2 [email protected] 2 [email protected] 3 [email protected] Hello! I have a table with data like above. I want to create...
  • v-chuncz-msft's avatar
    8 years ago

    bhatsuchi,

     

    You may refer to the measures below.

    Measure =
    COUNTROWS (
        FILTER (
            VALUES ( Table1[Id] ),
            CALCULATE ( COUNT ( Table1[Email] ) > DISTINCTCOUNT ( Table1[Email] ) )
        )
    )
    
    Measure 2 =
    COUNTROWS (
        FILTER (
            VALUES ( Table1[Id] ),
            CALCULATE ( DISTINCTCOUNT ( Table1[Email] ) > 1 )
        )
    )