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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
lyengulalp
New Member

@Fowmy Thank you.

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.