Forum Discussion
Count Rows with Multiple Conditions
- 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
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