Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

COUNT IF

I have two values, the Limit value and the produced value.   I need to do a Count IF and I need to account for all amounts above the Limit.   I tested this calculation here but it is counting all...
  • Pulkit's avatar
    6 years ago

    Hi,

     

    You are trying to run it like a loop and increment the count value which won't work, instead try this:

    1. Create a column with new column = IF((Amount - Limit)>0,1,0)

    2. SUM[New column]

     

    Let me know if this works.

  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous ,

     

    Create a measure

     

    Count greater than limit = 
    
    COUNTROWS(
        FILTER
        ('Table', 'Table'[VALUE] > 'Table'[LIMIT])
    )