Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
15 | |
10 |
User | Count |
---|---|
57 | |
50 | |
44 | |
21 | |
19 |