Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 with no opps. I tried to copy the matrix and change to a pie chart, but the Blanks (no data) drops off the visual.
How can I create a pie chart showing the same data? Below is a example set of data and the outcome I am looking to achieve in the pie chart.
Territory Name CountRows Opp Stage
01 | Brad | 0 | |
01 | Chris | 1 | Open |
01 | Edward | 3 | Won |
02 | Tim | 4 | Open |
02 | Tim | 1 | Won |
02 | Will | 0 | |
02 | Brian | 0 | |
02 | Jim | 2 | Lost |
03 | John | 3 | Open |
03 | Tom | 1 | Won |
Opp Stage | Count |
Open | 8 |
Lost | 2 |
Won | 5 |
Blank | 3 |
Thank you in advance for looking at my post.
Solved! Go to Solution.
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
@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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
9 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |