Forum Discussion

goaltender36's avatar
goaltender36
Helper I
10 years ago
Solved

Countif for multiple rows

Hello,   I am trying to count if there is a valuse in a row. My table has 5 columns some rows have a value and some dont example   column   A   B  C  D  E Row1      0    1   0   0  0  Row2     ...
  • Vvelarde's avatar
    10 years ago

    hi goaltender36

     

    CountVal =
    SUMX (
        'Table-Count',
        IF (
            'Table-Count'[A] + 'Table-Count'[B]
                + 'Table-Count'[C]
                + 'Table-Count'[D]
                + 'Table-Count'[E]
                > 0,
            1,
            0
        )
    )