- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Create pie chart based on measure
This is a sample report regarding employee performance.
- If an employee doesn't meet the sales target, he will receive a notice.
- If an employee exceeds the maximum allowed refund amount, he will receive a notice.
- If an employee doesn't meet both requirements, he will receive two notices.
The measure "Number_Notice" calculates the number of notices
I want to calculate the number of notices based on each country, city, employee, and product category.
The measure works well in the table.
I created a table for the slicer "Number of Notice". If the results returned by the measure "Number_Notice" match the slicer selections, they will be included.
e.g. I select Flag:1
I want to create a pie chart in PowerBI to show the distribution of notices. This is an example created in Excel.
I think there are 2 key points.
1. The calculation of the number of notices based on each country, city, employee, and product category works well in the table as long as I include the respective columns, but I'm not sure how to calculate it in a pie chart.
2. The pie chart needs to interact with the slicers. I'm not sure how to filter the pie chart based on the slicer selections for 'Number of Notices,' as it doesn’t have relationships with other tables.
Any advice would be appreciated. Thank you so much!
https://drive.google.com/file/d/1w_C86cENjnTki4k2gazHVTNyT1aa3Nac/view?usp=sharing
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Power BI (unlike Tableau) does not support dynamic bucketing. You need to bring your own buckets, in a disconnected table - like you did in the "Notice" table. You can then base your horrible pie chart on that table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you for your reply!
Just one question: Why can't we apply [Sum_Sales Amount] > 0 directly in 'Filters on this visual'?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

you need to group first before you can apply the measure filter. Otherwise it would attempt to filter the individual rows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

One more question:
How can I create a pie chart that shows the count for each notice type?
I want the pie chart to show:
- Number of Sales Notices
- Number of Refund Notices
Do I need to create a separate measure for each notice type?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

You can change your buckets to represent notice types. (Sales or Refund) Then adjust your measure accordingly
Are you sure a pie chart is the right chart for the data story you are trying to tell?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Yes I know that's a bit weird
I want to create a pie chart in PowerBI to show the distribution of each notice type. This is an example created in Excel
I want to calculate the number of each notice type based on each country, city, employee, and product category.
The number of highlighted cells is same as the values shown for each notice type in the pie chart above
My current thought:
1. Create a new table with a column called "Notice Type," which will be used as the Legend in the pie chart.
2. Create a measure

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
06-07-2024 08:12 PM | |||
01-01-2024 01:32 PM | |||
Anonymous
| 10-16-2023 06:33 AM | ||
Anonymous
| 04-03-2023 12:01 AM | ||
05-28-2024 04:34 PM |
User | Count |
---|---|
100 | |
80 | |
65 | |
42 | |
41 |
User | Count |
---|---|
96 | |
60 | |
55 | |
54 | |
50 |