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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.