Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Count rows with filter condition

I am trying to create a measure volumn based on this syntaxt but getting an error saying there is a cicurlar dependency

Count_A = calculate(COUNTA('mytable'[column1]),'mytable'[column1] =1.00). Does anyone know where i might be going wrong?
column1 has values between 1 and 5 and the requirement is to count how rows of 1, 2, 3, 4, 5

9 Replies

  • Hi Anonymous 
    In terms of syntax, it is correct.
    Attached is a picture of what I tried.
    Regarding logic, I'm not sure I understand what you're trying to accomplish.
    Could you please attach a sample of your data and the desired result?

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      that's the column that i want to count how many 2.00, or 3.00 or 4.00 or a 5.00  

      • Ritaf1983's avatar
        Ritaf1983
        Super User

        The picture is cropped and still difficult to understand something.
        Please attach a table / link to your file, as well as a picture of the desired result.

  • write like this

    Count_A = calculate(COUNTA('mytable'[column1]),
    FILTER(ALL('mytable'),'mytable'[column1] =1.00))