Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Calculating pass or fail

I would like to know how to calculate pass or fail for each student if they have taken both the courses. I have a measure on grade as the grades could be A,B,C or S for passing. Each student will...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Thanks for your reply. I didn't try your method but I wrote a calculated column to decide Pass or Fail using SQL query and used below measure

    GR = if(COUNTROWS(filter(ALL(COURSES),and(COURSES[COURSE_NAME]="CECZS-769", AND( COURSES[Pass_Fail] ="P",COURSES[PERSON_ID]=SELECTEDVALUE(COURSES[PERSON_ID])))))>0,"Pass","Not_Finished")