How to count tei with attribute value as condition when calculate the indicator

"I have defined a tracked entity type: Doctors, with an attribute for gender, and registered doctor entities. Now, how do I define an indicator to calculate the number of male doctors?

Hi @linxd

This is an enrollment type of indicator where you count the number of TEIs enrolled in a program with a certain condition. You’d use the expression V{enrollment_count} and in the filter the condition that the TEI Gender is Male.

This is explain in the Learner’s Guide to Program Indicator, create-enrollment-type-indicators - exercise four

I hope this helps. Thanks!