Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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] ) )
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
8 |