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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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]) )
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.