Skip to main content

Custom Query: Combine 2 or more custom queries

How to create a query selecting 2 criteria?

Updated this week

To combine your query for 2 or more conditions, please complete the following steps:

  1. Go to the Core or Payroll module and click Query Setup.

  2. Click New and enter the query name.

  3. Enable the Use Custom Query checkbox and click on the 3 dotted button.

  4. In the Custom Query window, on the right panel, double-click on the item you want in the query, such as Department.

  5. On the left panel, after the Employee.DepartmentId type IN

  6. Click on the open bracket and in the drop-down list, select the department.

  7. Each time you select a department, it has to be followed by a comma.

  8. Type a comma followed by the next department selection.

  9. The last department is followed by the close bracket.

  10. Add in AND after the bracket and choose another item, such as Employee.PositionId

  11. If you want to have another query, repeat the step above.

  12. Click Save, close the window and click Apply.

  13. It should appear like this Employee.DepartmentId IN ( 'IT' , 'HR n Admin' ) AND Employee.PositionId IN ( 'Assistant', 'Executive')

Did this answer your question?