Forum Discussion

pbrainard's avatar
pbrainard
Helper III
4 years ago
Solved

Need help with counting...

All I want to do is count the occurrences of the Yes values. There are eight rows and 7 Yes values. Why am I getting a count of 15? I'm doing something wrong!

 

cntSSMYes = COUNTROWS(FILTER('YET SS Matrices','YET SS Matrices'[SSMImproved]="Yes"))

 

 

  • pbrainard ,[SSMImproved] is column it should work

     

    If this is a measure , Try a measure like

     

    cntSSMYes = COUNTX(Filter(Values('YET SS Matrices'[participant]) ,[SSMImproved]="Yes") ,[participant] )

3 Replies

  • pbrainard ,[SSMImproved] is column it should work

     

    If this is a measure , Try a measure like

     

    cntSSMYes = COUNTX(Filter(Values('YET SS Matrices'[participant]) ,[SSMImproved]="Yes") ,[participant] )

  • PC2790's avatar
    PC2790
    Community Champion

    The formula looks correct.

    Is there any filter applied to your matrix here which is limiting the number of rows?