Example: Group Countries by Region

Purpose

To group employees by geographic region based on the Country field (fHCM2__Country__c) as recorded in their Team Member records. This example uses the regions:

  • APAC (Asia Pacific)
  • EMEA (Europe, Middle East, Africa)
  • NA (North America)

Team Member records showing countries not assigned to these regions display under the country names.

How

  1. Go to Setup > App Setup > Create > Objects.
  2. Select the Label for the Team Member object.
  3. In Custom Fields & Relationships, select New:

    Screenshot: fields & relationships new

  4. Sage People displays the New Custom Field wizard.

  5. Select the Formula Data Type:

    Screenshot: set formula data type

  6. Select Next.
  7. In Field Label enter Region.

    Sage People automatically completes Field Name with the Field Label you entered.

  8. Select the Text Formula Return Type:

    Screenshot: set text formula return type

  9. Select Next.
  10. In Region (Text) enter the formula:
  11. CASE(fHCM2__Country__c ,

     

     

    "Canada", "NA",
      "China", "APAC",
      "Denmark", "EMEA",
      "France", "EMEA",
      "Germany", "EMEA",
      "Ireland", "EMEA",
      "Singapore", "APAC",
      "Sweden", "EMEA",
      "UK", "EMEA",
      "USA", "NA",
    fHCM2__Country__c)

  12. In Description enter:

    To group Countries by region.

  13. In Help Text enter:

    Groups Team Members by geographic region using the Country field.

  14. Select Next.
  15. Set field-level security for the new field to enable access by users assigned to Profiles you want to be able to run the Turnover report.

    Typically, set Fairsail Administrator and Fairsail HR Manager to visible, all other Profiles clear:

    Screenshot: set field-level security

  16. Select Next.
  17. In Add to page layouts, uncheck all Page Layouts unless you want to add the Region field by default to a page layout:

    Screenshot: set page layouts

  18. Select Save.

    Sage People displays the Team Member Custom Object page.

  19. Select Field Sets and select Edit for the Turnover Field Set:

    Screenshot: edit field set

  20. Drag and drop the Region field into the Field Set:

    Screenshot: add field to field set

  21. Select Save.
  22. Go to the Turnover Report and select By Region:

    Screenshot: turnover report by region

    The data table displays the newly defined regional grouping:

    Screenshot: data table with region grouping