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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello.
I have a table with students' exams including score, exam number, and whether the exam was proctored or not.
| Name | Exam score | Exam number | Proctored |
| Kathy | 90 | 1 | No |
| Kathy | 86 | 2 | Yes |
| Kathy | 70 | 3 | Yes |
| Ben | 79 | 1 | Yes |
| Ben | 94 | 2 | No |
| Steve | 20 | 1 | No |
| Steve | 35 | 2 | Yes |
| Steve | 60 | 3 | No |
| Steve | 81 | 4 | Yes |
I would like to produce tables that list the students together with the score on the first proctored exam:
| Name | First proctored exam score |
| Kathy | 86 |
| Ben | 79 |
| Steve | 35 |
I've tried a bunch of things and can't get them to work.
Any help would be greatly appretiated!
Solved! Go to Solution.
@lyengulalp
I hope your exam numbers are in sequence order otherwise you will have to add an index column in Powre Query and use it instead. Try this meaure:
First proctored exam score =
VAR __ExNo =
MINX(
FILTER(
Table1,
Table1[Proctored] = "Yes"
),
Table1[Exam number]
)
VAR __Result =
CALCULATE(
MAX(Table1[Exam score]),
Table1[Exam number] = __ExNo
)
RETURN
IF(
ISINSCOPE( Table1[Name] ),
__Result
)
โญ Subscribe and learn Power BI from these videos
โช Website โช LinkedIn โช PBI User Group
@lyengulalp
I hope your exam numbers are in sequence order otherwise you will have to add an index column in Powre Query and use it instead. Try this meaure:
First proctored exam score =
VAR __ExNo =
MINX(
FILTER(
Table1,
Table1[Proctored] = "Yes"
),
Table1[Exam number]
)
VAR __Result =
CALCULATE(
MAX(Table1[Exam score]),
Table1[Exam number] = __ExNo
)
RETURN
IF(
ISINSCOPE( Table1[Name] ),
__Result
)
โญ Subscribe and learn Power BI from these videos
โช Website โช LinkedIn โช PBI User Group
Check out the November 2025 Fabric 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!