Forum Discussion
botaac
4 years agoFrequent Visitor
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...
- 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
jeroendekk
4 years agoResponsive Resident
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
- botaac4 years agoFrequent Visitor
That is awesome! Thank you so much, Jeroen. Have a nice day!