Hey Erika,
You will need to create a calculated field on the custom form in order to use it in a chart. I think this should work:
IF(CONTAINS("Yes",{test field}),totalOpTaskCount,"")
Just replace the 'test field' with your custom field name.
Hope this helps!