3 Replies Latest reply on Feb 28, 2017 8:44 AM by MichaelManousos

    Employee Database




      I'm relatively new to FileMaker Pro. I created a database to store employee information and organize employee files. Items such as reviews, training records and such. I want the database to also compute useful information like employee turnover and department headcount. I'm struggling with getting a field to calculate or summarize how many "active employees" or "active temps" in a specific department. I would ideally need a count(if) type function. Can anyone help me? I have 6-9 departments each have full time employees and temp hire employees. I want to create a headcount for those departments.


      Any help or direction will help a lot!! Thank you!

        • 1. Re: Employee Database



          Thank you for your post!


          You might see pre-made solutions using Search | Made for FileMaker.


          I'm also going to move this thread from the FileMaker Community Feedback Space (which is specifically for input on the Community itself) to the Discussions Space where you should receive more views and potentially more feedback on this topic!



          FileMaker, Inc.

          • 2. Re: Employee Database

            I would ideally need a count(if) type function.

            This is a pretty common thing to see in this forum. No such function exists, but there are ways to get that same result. Which approach works best, depends on the design of your tables/relationships and how you design the layout on which you want to report those counts.


            Options include:


            ExecuteSQL( ). This function can use count to count your records with a WHERE clause to do the "if" part that limits the count to a specific set of records.


            A Relationship can be set up that matches only to the records you want to count (such as all active employees). Then the Count ( ) function works as you are using the relationship to get the "If" part of this to work.


            A Filtered portal can filter for a specific category of records and a "count of" summary field or the found set layout object can be inserted into the portal's single portal row to show a count of just those related records that pass the filter.


            A summary report can be set up where you sort the records into categories with a sub summary part to serve as a "sub header" for each such group of records. Put a "count of" summary field into that sub summary layout part and you get a count of the records in each group. Remove the body layout part from the layout and you get one row of data for each category with a count for each.


            "Cross tab" reports are also possible--where the subtotals get arranged into columns instead of rows. Though these are more complex to set up and there are a number of very different methods that can be used to produce such a report. You can research "Cross tab" here in the forum to find discussions of the different methods you might use for such a report.

            • 3. Re: Employee Database

              there isnt a native count(if) calculation but you can accomplish the same results with many different ways. The "classic" way with relationships employers to departments, the same with filtering. you have to tag everyone with the department unique value