ktalley Posted May 24, 2012 Posted May 24, 2012 Hello, I am wanting to count the number of male and female participants in a particular event and display that number breakdown for all events. Here are the relevant tables: Students -< StudentEvents >- Events I have created a report that shows correctly the number of male and female per event. The layout I have in the Students Table is: Body: EventID (using a pop-up menu to display the real name of the event) Sub summary: Gender and Gender_Count (just a count of Gender) Trailing Grand Summary: Gender_Count When I do a find for a particular event and then sort by Gender it works great - but for one event at a time. Is there anyway that I can display on one report the breakdown of Gender and total for each event? Thanks for your assistance kt
ktalley Posted May 25, 2012 Author Posted May 25, 2012 Thanks for your reply. I had tried that, but was getting numbers that didn't add up. Then I tried using the EventID from the Events table and not the EventID from the StudentEvents table and it's closer, but there is still a problem. Edit: When I have a student who is attending more than one event, it only counts their gender in once for all the totals and not for each event they are in. If a student is in Event A and B it only count them in event A and not in Event B. Any thoughts on that?
comment Posted May 25, 2012 Posted May 25, 2012 I am wanting to count the number of male and female participants in a particular event To do this, your report must be produced from the StudentEvents table. Sort the records by EventID (or by Events::EventName) and by Students::Gender, and use corresponding sub-summary parts to show the sub-counts. If you want to show the M/F breakdown for each event AND as a grand total, it's going to be more complicated.
mr_vodka Posted May 25, 2012 Posted May 25, 2012 (edited) Sorry I should have caught this sooner. Your report should be based off the StudentEvents table not the Students table. Group and subsummarize by eventID and gender. There should be a summary field in the StudentEvents table that counts the records. Edit: Didnt see the post by comment. Edited May 25, 2012 by mr_vodka didnt see the post by comment
ktalley Posted May 26, 2012 Author Posted May 26, 2012 Thank you gentlemen. Having the layout in the StudentEvents table was what I was missing. It would be nice to have the total number of participants per event on the same report - even though it's not hard to add two numbers in my head. How complicated are we talking? Thanks
comment Posted May 26, 2012 Posted May 26, 2012 After finding the records you want to include in the report, sort them by gender and write the sub-totals to global fields/variables. Then proceed to sort as stated above and show the globals in the grand summary part.
Recommended Posts
This topic is 4563 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now