Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
lyengulalp
New Member

Help creating a column that lists the exam score associated with the lowest value in another column.

Hello.

 

I have a table with students' exams including score, exam number, and whether the exam was proctored or not. 

 

NameExam scoreExam numberProctored
Kathy901No
Kathy862Yes
Kathy703Yes
Ben791Yes
Ben942No
Steve201No
Steve352Yes
Steve603No
Steve814Yes

 

I would like to produce tables that list the students together with the score on the first proctored exam:

 

NameFirst proctored exam score
Kathy86
Ben79
Steve35

 

I've tried a bunch of things and can't get them to work. 

 

Any help would be greatly appretiated!

 

 

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@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
    )

Fowmy_0-1707766961804.png

 





Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@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
    )

Fowmy_0-1707766961804.png

 





Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

lyengulalp
New Member

@Fowmy Thank you.

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (27)