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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I'm trying to visualise some data which is a sum of defect scores for a number of units that have been audited/assessed. Each unit can have multiple defects (1 unit to many defects) and units are audited/assessed daily so the data is reviewed daily, weekly, monthly, quarterly, annually etc. The defects are also associated with a department, respsonsible for creating it and therefore rectifying it.
I have the following measure:
| Unit ID | Defect Code | Defect Score | Department |
| Unit 1 | AB1 | 1 | Dept A |
| Unit 1 | AB2 | 5 | Dept B |
| Unit 1 | AB3 | 1 | Dept C |
| Unit 1 | AB4 | 1 | Dept A |
| Unit 2 | AB1 | 1 | Dept A |
| Unit 2 | AB3 | 1 | Dept C |
| Unit 3 | AB2 | 5 | Dept B |
| Unit 3 | AB7 | 1 | Dept C |
| Unit 3 | AB9 | 10 | Dept B |
| Unit 4 | AB8 | 1 | Dept D |
| Unit 5 | AB3 | 1 | Dept C |
| Unit 5 | AB4 | 1 | Dept A |
Solved! Go to Solution.
Try this measure:
AAA - Score divided by distinct count =
DIVIDE (
SUM ( 'Raw Data'[Defect Score] ),
CALCULATE (
DISTINCTCOUNT ( 'Raw Data'[Unit ID] ),
ALL ( 'Raw Data'[Department] )
)
)
---
Proud to be a Super User!
That worked perfectly. Thank you.
Try this measure:
AAA - Score divided by distinct count =
DIVIDE (
SUM ( 'Raw Data'[Defect Score] ),
CALCULATE (
DISTINCTCOUNT ( 'Raw Data'[Unit ID] ),
ALL ( 'Raw Data'[Department] )
)
)
---
Proud to be a Super User!
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 |
|---|---|
| 97 | |
| 81 | |
| 73 | |
| 46 | |
| 35 |