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
Ashish_Mathur
4 years agoSuper User
Hi,
This calculated column formula works
=if(CALCULATE(COUNTROWS(Data),FILTER(Data,Data[Name]=EARLIER(Data[Name])&&Data[Exam]="Exam 1"&&Data[Exam Score]="Fail"))>=1,"Yes","No")
Hope this helps.