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
Hi all,
I am calculate a average value in a matrix table. Every worker has record, 1 or 0(Column 0 or 1). If there is any record not 0, it count 1(Column Max of 0 or 1). What I want is average as showing in the picture. I spent a lot of time to write a measure, but it is always wrong. Really need help!!
Thank you in advance!
Bran
| Job Desc | Name | 0 or 1 |
| Foreman | Allan Doole | 0 |
| Foreman | Allan Doole | 0 |
| Foreman | Allan Doole | 0 |
| Foreman | Allan Doole | 0 |
| Foreman | Allan Doole | 0 |
| Foreman | Ben Ju | 1 |
| Foreman | Ben Ju | 0 |
| Foreman | Ben Ju | 1 |
| Foreman | Ben Ju | 1 |
| Project Manager | Andy Young | 1 |
| Project Manager | Andy Young | 0 |
| Project Manager | Andy Young | 0 |
| Project Manager | Andy Young | 0 |
| Project Manager | Craig Thorsen | 0 |
| Project Manager | Craig Thorsen | 0 |
| Project Manager | Craig Thorsen | 0 |
| Project Manager | Craig Thorsen | 0 |
| Project Manager | Craig Thorsen | 0 |
| Safety Coordinator | Abednego Shu | 1 |
| Safety Coordinator | Abednego Shu | 0 |
| Safety Coordinator | Abednego Shu | 0 |
| Safety Coordinator | Abednego Shu | 0 |
| Safety Coordinator | Abednego Shu | 0 |
| Safety Coordinator | Abednego Shu | 0 |
| Safety Coordinator | Andrew Hadley | 0 |
| Safety Coordinator | Andrew Hadley | 1 |
| Safety Coordinator | Andrew Hadley | 1 |
| Safety Coordinator | Andrew Hadley | 0 |
| Safety Coordinator | Andrew Hadley | 0 |
Solved! Go to Solution.
Hi @Anonymous
Please try
Average =
AVERAGEX (
VALUES ( 'Test'[Name] ),
CALCULATE ( MAX ( 'Test'[0 or 1] ) )
)
Hi @Anonymous
Please try
Average =
AVERAGEX (
VALUES ( 'Test'[Name] ),
CALCULATE ( MAX ( 'Test'[0 or 1] ) )
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 32 | |
| 20 | |
| 12 | |
| 11 |