Skip to main content

Custom Query: Set the custom query to filter by some departments

How to set a custom query filter by department or category?

Updated over 2 weeks ago

You can set a query by department or category by completing the following steps:

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

  2. Click New and enter a new Query ID.

  3. Enable Use Custom Query and click the three-dotted button.

  4. Scroll up on the left in the Custom Query window and search for Department.

  5. Double-click Department and Employee.DepartmentId will be displayed in the right panel.

  6. Type IN after the Employee.DepartmentId.

  7. Type open bracket and select the department in the Select drop-down list. If you have more departments to select, type a comma followed by selecting in the select drop-down list for the next department.

  8. Type a close bracket. The formula will now display as Employee.DepartmentId IN ('ADMIN', 'HR', 'FINANCE')

  9. Click Save, apply this query and refresh your screen.

Did this answer your question?