SugarLogic issue in 7.8

I have two formula fields on a custom Events module:

'num_enrolled' =>

    'formula' => 'count($evnts_events_leads)',

 'attendance_total'

    'formula' => 'count(equal(related($evnts_events_leads,"virtual_event_status_c"),"Attended"))',

 

Both count Leads related to the Events module, the first counts all related leads and works perfectly, the second should count all related leads that have virtual_event_status_c = 'Attended' but always reports zero.

 

Any thoughts on why this would not work anymore? It did in previous versions and I'm not sure at which point in time it stopped working...

 

thanks

FrancescaS