Forum Discussion

xliu1's avatar
xliu1
Helper II
6 years ago
Solved

Conditional count for a category column

I am very new to Power BI. I try to do a conditional count for a category column, and here is my syntax. COURSE_MODALITY is the table, and GRADE_AWARDED is the column. I want to count number of grade...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi xliu1 

     

    DF Grades = calculate(COUNT(COURSE_MODALITY[GRADE_AWARDED]),COURSE_MODALITY[GRADE_AWARDED] IN {"D","D+","D-","F","U"})


    Did I resolve your issue? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!!

     

    Regards,
    Pranit