Alert for department in custom field

Hi gang,

Could anyone help me create this widget? Basically, it needs to capture the number of active alerts for a specific department in the custom field. I’d really appreciate it — I’ve been struggling with this for weeks but haven’t been able to achieve the desired result.

Thanks!