Answers.Body: <p>If I'm not mistaken, you can do that with an advanced search by simply selecting the correct event and the status being registered and then under demographics choosing the gender that you want</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-21T20:25:35.017Z
Answers.LastActivityDate: 2016-01-21T20:25:35.017Z
Answers.UserDisplayName: Yossi
Answers.Body: <p>It's not going to be answering your question, but did you look at civisualize? its latest version contains a visualisation for events, with a filter based on the gender...</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-21T19:50:56.340Z
Answers.LastActivityDate: 2016-01-21T19:50:56.340Z
Answers.UserDisplayName: Xavier
Answers.Body: <p>Gender is a field available as a column on <a href="http://d46.demo.civicrm.org/civicrm/report/instance/25?reset=1" rel="nofollow">http://d46.demo.civicrm.org/civicrm/report/instance/25?reset=1</a> - so you could both show it, and filter by it. The later also lets you filter by 'not one of' 'male, female, transgender' in case you have contacts with no gender recorded</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-21T21:53:08.127Z
Answers.LastActivityDate: 2016-01-21T21:53:08.127Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>I would like to retrieve the amount of male/female participants of an event.
  So far I am able to retrieve the total amount of registered people.
  How can I get a number for the amount of male and female participants? </p>
  
  <pre><code>$result = civicrm_api3('Participant', 'getcount', array(
    'sequential' =&gt; 1,
    'event_id' =&gt; 66,
    'status_id' =&gt; array("Registered", "Pending from pay later", "Pending from incomplete transaction", "Partially paid", "Pending refund"),
    'options' =&gt; array('limit' =&gt; 9999),
  ));
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-21T22:09:19.380Z
Comments.Text: Are you asking for any way to get the info or specifically how to do it from the API?
Comments.UserDisplayName: Allen Hutchison
Tags: <civievent><api>
Title: retrieve amount of male/female participants
ThreadText: # retrieve amount of male/female participants
  
  (Asked by: username_0 on 2016-01-21)
  
  I would like to retrieve the amount of male/female participants of an event.
  So far I am able to retrieve the total amount of registered people.
  How can I get a number for the amount of male and female participants? 
  $result = civicrm_api3('Participant', 'getcount', array(
    'sequential' => 1,
    'event_id' => 66,
    'status_id' => array("Registered", "Pending from pay later", "Pending from incomplete transaction", "Partially paid", "Pending refund"),
    'options' => array('limit' => 9999),
  ));
  
  **Tags:** civievent, api
  
  > **Comments:**
  > **username_1**: Are you asking for any way to get the info or specifically how to do it from the API?  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2016-01-21. Score: 1
  
  If I'm not mistaken, you can do that with an advanced search by simply selecting the correct event and the status being registered and then under demographics choosing the gender that you want
  
  
  ---
  
  ### Answer by username_3 on 2016-01-21. Score: 1
  
  It's not going to be answering your question, but did you look at civisualize? its latest version contains a visualisation for events, with a filter based on the gender...
  
  
  ---
  
  ### Answer by username_4 on 2016-01-21. Score: 0
  
  Gender is a field available as a column on <http://d46.demo.civicrm.org/civicrm/report/instance/25?reset=1> - so you could both show it, and filter by it. The later also lets you filter by 'not one of' 'male, female, transgender' in case you have contacts with no gender recorded
  
  
  ---
  
  