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
Hello,
I'm currently trying to find a way to calculate the average "static" pass rate of my dataset overall. The pass rate column is currently set up as a cumulative pass rate (see attached below) so basically I need to be able to look for the max value of "cumulative attempts" column for each individual in the "ID" column and then retrieve the overall test pass rate for that individual (1 line) so that I can run an average on each of those final pass rates. If I were to average a cumulative pass rate (as-is currently) the pass rate would be skewed lower than it should be overall. I unfortunately cannot link my dataset yet for privacy concerns but hope the image below should be enough, to understand the logic of what I'm trying to do.
Any help is much appreciated!
Solved! Go to Solution.
Hi @Anonymous ,
We can create a measure to get that by only one step:
Measure =
VAR P =
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[ID] ), 'Table'[Result] = "P" )
)
VAR al =
CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[ID] ) )
RETURN
DIVIDE ( P, al ) + 0
Hi @Anonymous ,
We can create a measure to get that by only one step:
Measure =
VAR P =
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[ID] ), 'Table'[Result] = "P" )
)
VAR al =
CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[ID] ) )
RETURN
DIVIDE ( P, al ) + 0
Edit: I think I've figured it out actually...by breaking it up into two steps. 1) the following formula seemed to work to get static pass rates that would repeat for each person down the rows:
CALCULATE ( MAX ([Cumulative Pass Rate Column]), ALL EXCEPT ([ID column])
and from there I could run the average of that column (7 percentage points higher than my cumulative pass rate would've been).
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!