Working with People Inc. Filters
There are many filters already set up within People Inc, but it is highly likely you will need to set up your own filters.
Before you can run or create any filters you will need to understand how a filter is defined. You will need to establish what it is you are looking for and how to tell the system to look for it. To do this you will need to make a note of the 4 ‘settings’ below:
Screen/Table (Which sub-screen holds the information we are looking for)
Field (which contains the value we are searching for)
Operator (which determines how the information is found)
Value (which is the information we are looking for)
For example, if we are trying to find all the people in the Administration Department we would use the following settings:
Screen/Table = Employee Details
Field = Department
Operator = Is Equal to (we want to find an exact match)
Value = Administration
You will only learn the location of fields by using the system and making a mental note of which fields appear under which.
Operators (or Functions) is the logic that we apply to the Filter to ensure we get the correct results. For example to find people who Joined the company on a specific date, the we would use EQUAL TO. If we wanted to find people who joined before or after a specific date we would use GREATER THAN or LESS THAN and if we wanted to find people who joined between 2 dates, we would use BETWEEN
There are several operators:
| Operator
|
Symbol |
Example |
| IS EQUAL TO (=) |
= |
Everyone in the Administration Department |
| IS NOT EQUAL TO (<>) |
<> |
Everyone except the Administration Department |
| GREATER THAN |
> |
Greater than a date or value |
| GREATER THAN OR EQUAL TO |
>= |
Greater than or Equal to a date or value |
| LESS THAN |
< |
Less than a date or value |
| LESS THAN OR EQUAL TO |
<= |
Less than or Equal to a date or value |
| LIKE |
|
Use % as a wildcard to show all the Managers by entering “% Manager” as a value, using the Job Title Field. |
| NOT LIKE |
|
As above but showing everyone except the Managers for example |
| BETWEEN |
|
Showing people who joined between 2 dates (01/01/2010,31/01/2010) |
| NOT BETWEEN |
|
The Opposite of the above |
| IN LIST |
|
Employees in more than one Department (Administration,Sales,Finance) |
| NOT IN LIST |
|
Employees NOT in the list of Departments |
| BLANK |
|
Employees who HAVE NOT Left (LEAVING DATE is BLANK) |
| NOT BLANK |
|
Employees who HAVE Left (LEAVING DATE is NOT BLANK) |
We will use the example where we only want to see Active Employees rather than all of them. Before creating a new filter we need to determine what the properties are.
These properties usually take the form of a table whereby we need to specify the Table, Field, Operator and Value in order set up a filter. For our example our table will look as follows:
Filter Properties Table:
| TABLE |
EMPLOYEES |
| FIELD |
STATUS |
| OPERATOR |
= |
| VALUE |
Active |
To create a new filter:
- Open the Management Console
- Click on the Screen where you wish to set up the filter (i.e. Employees)
- Right Click on an existing filter in the right hand screen and choose NEW FILTER
- Enter a name for the filter (Active)
- Enter a Description for the Filter (this can be very useful to remind users what the filter does specifically)
- Click FINISH to open the QUERY DESIGNER
- Choose the TABLE you wish to use (EMPLOYEES)
- Click the FIELDS tab and choose the fields you wish to use in the Filter (STATUS)
- Click the SEARCH tab and choose the same field(s) as before
- In the CRITERIA area choose the OPERATOR (=)
- In the CRITERIA are type in the VALUE (Active)
- Click OK
The query now appears in the list of Filters on the Employees screen.
If you want to apply more than one criteria simply repeat the steps 1 to 11 to set up your first criteria, then repeat steps 9 to 11 to set up subsequent criteria.
You can also create OR and NOT conditional statements. For example, you might want to find Employees who either reside in a certain city OR are willing to relocate. In this case, you define the first criteria as equal to the city, then insert an OR statement, and define the second criteria as willing to relocate is True.
Editing a Query with the Query Designer
To edit a query we have to use the Query Designer. This allows us to change the properties for the filter.
In this example we will edit our Active Employees filter and add a second criteria to find all the Active Employees who are Female. The properties for this filter are:
| TABLE |
EMPLOYEES |
| FIELD |
GENDER |
| OPERATOR |
= |
| VALUE |
Female |
To edit a query:
- In the Management Console locate the filter you wish to edit.
- Right click on the Filter and choose ALL TASKS>EDIT FILTER – this opens the Query Designer
- In the SEARCH Tab scroll down the list of fields to find GENDER and double click on it – this adds the field to the Criteria window
- Click on the GENDER field in the Criteria window to select it and then set the OPERATOR to Equals To (=)
- Enter the VALUE as ‘Female’
- Click OK
Then apply the filter to the screen to view the results.
Changing Sort Order
You may want to not only apply a filter, but also change the sort order of how the records appear in the screen.
Using our example we will change the sort order of our Active filter to sort by SURNAME and then FIRSTNAME.
To change the sort order
- Either create a new filter or edit an existing one
- In the Query Designer click on the SORT tab
- Locate the Surname field and double click on it
- Locate the Firstname field and double click on it
- In the Sort Fields Window the two fields should be shown
- Click OK
- Apply the filter to the Employees screen to see the results
NOTE: The sort order only sorts the fields in the order in which you double clicked on them. For example if you had double clicked on Firstname first and then Surname it would have sorted the data in this way.
Deleting a Filter
To delete a filter simply locate the filter you wish to delete in the Management Console, right click on it and choose DELETE FILTER.
Applying And Removing Default Filters
As mentioned, default filters are filters, which are set up on a specific screen within the management console, so that each time you open the screen it automatically applies the chosen filter to save having to apply the filter when the screen is opened. For example, when you open the Employees screen you may only ever want to view Active Employees by default.
To set up a default filter you must initially make sure you have already set up the filter you wish to use (refer to the Setting up Filters section on how to do this). Then:
- Open the Management Console
- Click on the screen you wish to apply a default filter to
- In the right hand window, right click on the filter you wish to apply as default
- Choose the ALL TASKS>APPLY AS DEFAULT FILTER option
This now means that when you next open the relevant screen, in this case Employees it will only show active Employees.
If you change the status field on a Employees record to anything other than active, they will no longer appear when you next open the Employees screen.
Filters can also be set up on the action list to show all of your own actions due by a specific date for example.
Comments