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
Alicia83B , You should use Opp Stage ad legend and count of Territory as value.
If needed use this option on the right click of Opp Stage in the visualization pane
amitchandak This does work when I have the data in a matrix visual. However, if I switch to a pie chart visual, it does not work. That is what I am looking to do. Thx.