Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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] ) )
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
40 | |
27 | |
20 | |
15 | |
8 |
User | Count |
---|---|
71 | |
48 | |
46 | |
20 | |
16 |