Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello, I am trying to implement a Pie Chart with the sample data below. Legend: Color and Values: Average of Days. The problem is that there are records that have the same color mutilpe times so when it does the average for yellow below it is (5+7+14)/3. I want the color average but the color should be grouped by the ID. So, (5+7+14)/2. How can I accomplish this? Thanks!
| ID | Color | Days |
| 1 | Yellow | 5 |
| 1 | Red | 6 |
| 1 | Yellow | 7 |
| 2 | Yellow | 14 |
Solved! Go to Solution.
Try this.
Avg =
DIVIDE( SUM ( 'Table'[Days] ), DISTINCTCOUNT('Table'[ID]) )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 57 | |
| 45 | |
| 42 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 169 | |
| 109 | |
| 91 | |
| 55 | |
| 44 |