Forum Discussion

Alicia83B's avatar
Alicia83B
Helper I
3 years ago
Solved

Count Rows with Multiple Conditions

Hello,    I have created a matrix that shows territory. sales person , opps stage, and countrow opps. On the sales person, I have checked off show items with no data, so I can see sales persons wit...
  • v-yueyunzh-msft's avatar
    3 years ago

    Hi , Alicia83B 

    Here are the steps you can follow:

    (1)This is my test data which is the same as yours:

    (2)We can create a measure :

    Count = IF( SELECTEDVALUE(Sheet2[Opp Stage])=BLANK() , COUNTROWS('Sheet2') , SUM('Sheet2'[CountRows]))

    (3)Then we put the measure in the visual and the field we need and we can meet your need:

     

    If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

     

    Best Regards,

    Aniya Zhang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly