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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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] ) )
)
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
15 | |
7 | |
6 |