Forum Discussion

PaulPalkowski's avatar
PaulPalkowski
Helper II
6 years ago
Solved

Count rows from filtered measure

I have tried and tried to look for a solution, and didn't find anything that wasn't confusing. I must be over thinking this... Here is my data, it's so very simple...only one column named Animal, wi...
  • VasTg's avatar
    6 years ago

    PaulPalkowski 

     

    Try this measures...

     

    Single_Occurrence = 
    VAR A = SUMMARIZE('Table (2)','Table (2)'[Animal],"Count1",COUNT('Table (2)'[Animal]))
    RETURN CALCULATE(COUNT('Table (2)'[Animal]),FILTER(a,[Count1]=1))

     

     

    Multiple_Occurrence = 
    VAR A = SUMMARIZE('Table (2)','Table (2)'[Animal],"Count1",COUNT('Table (2)'[Animal]))
    RETURN CALCULATE(COUNT('Table (2)'[Animal]),FILTER(a,[Count1]>1))

     

     

    If it helps, mark it as a solution

    Kudos are nice too