Forum Discussion
Counting Blank Fields on a Column that's Counting Values
- 1 year ago
You are right ! I forgot the FILTER it should be like below :
No Enrollments := CALCULATE( COUNTROWS(V_SECTIONCUSTOMFIELDS), FILTER( V_SECTIONCUSTOMFIELDS, ISBLANK( CALCULATE(COUNTROWS(V_ENROLLMENTS)) ) ) )
Sorry, I gave the wrong table name... it's actually V_ENROLLMENTS and it captures all students who are enrolled within a courses via the STUDENTINDEX variable. Here are a few screenshots. FYI, I renamed V_ENROLLMENTS[STUDENTINDEX] to just "Enrollments" on my table visual.
Thanks so much for your help!
Try the following :
Sections With No Enrollments =
CALCULATE(
COUNTROWS(V_SECTIONCUSTOMFIELDS),
ISBLANK(CALCULATE(COUNTROWS(V_ENROLLMENTS)))
)
- GON761 year ago
Helper III
That gave me an error:
- AmiraBedh1 year ago
Super User
You are right ! I forgot the FILTER it should be like below :
No Enrollments := CALCULATE( COUNTROWS(V_SECTIONCUSTOMFIELDS), FILTER( V_SECTIONCUSTOMFIELDS, ISBLANK( CALCULATE(COUNTROWS(V_ENROLLMENTS)) ) ) )- GON761 year ago
Helper III
Getting closer! Now instead of showing Blank the card is showing "1". Out of curiosity, why did you decide to use "V_SECTIONCUSTOMFIELDS"? This table houses the custom fields that we created in our learning management system. They way I'm displaying my visual is to count the STUDENTINDEXs enrolled in each course or in LMS-speak, Section. Thanks!