Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Calculated column returning wrong value

Hey, im having problem with a calculated column. I have a column with ID CLIENTE (more than 50K lines) including repeated values and I need to do a new column that works with a kind of COUNTIF (retur...
  • johnt75's avatar
    3 years ago

    Try

    flag cliente =
    DIVIDE (
        1,
        CALCULATE (
            COUNTROWS ( BASE_BANCO2_20221223 ),
            ALLEXCEPT ( BASE_BANCO2_20221223, BASE_BANCO2_20221223[ID CLIENTE] )
        ),
        0
    )