Forum Discussion

botaac's avatar
botaac
Frequent Visitor
4 years ago
Solved

Input Yes for whole column

Hello Everyone,   I am trying to create a column with DAX expression that inputs Yes when a student fails an exam for a certain period. For example, I have the following table   Name Exam Ex...
  • jeroendekk's avatar
    4 years ago

    Hi botaac 

    You could use something like this.

    Fail exam 1 = 
    VAR Student = Exams[Name]
    VAR Resultexam1 = COUNTROWS( 
        FILTER( Exams, Exams[Name] = Student && Exams[Exam] = "Exam 1" && Exams[Exam Score] = "Fail"))
    RETURN 
    If(Resultexam1 = 1,"Yes","No")

    Best regards,

    Jeroen