Skip to Main Content

EmpowHR - Version 9.0 Section 14 - Reporting

Previous Topic

Next Topic

Book Contents

Book Index

Creating a New Query

Below is a list to help in understanding the difference between public and private queries.

Below are some tips for saving queries.

To Create a Query:

  1. Select the Reporting Tools menu group.
  2. Select the Query menu.
  3. Select the Query Manager component. The Query Manager page is displayed.

    Query Manager Page

  4. Select the Create New Query link. The Query Manager page - Records tab is displayed.

    Query Manager Page - Records Tab

    Note: The Query Name on the page displays as New Unsaved Query.

  5. Complete the fields as follows:

    Field

    Description/Instruction

    *Search By

    Required field. Select the value for the search criteria or select data from the drop-down list. Valid values are Access Group Name, Contains Field Name, Description, and Record Name.

    begins with

    Corresponds to the Search By value.

     

  6. Select the Search button. The Search Results page is displayed based on the search criteria entered.

    Search Results Page

  7. Select the Add Record link to add the record to the query. The Query tab is displayed with the fields available for the applicable record.

    Note: For many records, a popup will appear. Many tables in EmpowHR have an effective date criteria added. It is recommended to leave the criteria in the query, since most of the time the user will want to see the most recent data row. However, the criteria can be removed later to expand the query results. You must select the OK button on the popup to proceed to the Query tab.

    Query Manager Page - Query Tab

  8. Check the boxes next to the fields that should be displayed on the query output. The fields selected will populate to the Fields tab.

    OR

     

    Select the Check All button to select all of the fields.

    OR

    Select the Uncheck All button to deselect all of the fields.

  9. Select the Save button. The Enter a Name To Save this Query page is displayed.

    Enter a Name To Save this Query Page

  10. Complete the fields as follows:

    Field

    Instruction

    *Query

    Required field. Enter the query name.

    Description

    Enter description of the query.

    Folder

    Enter the folder where the query will be saved.

    *Query Type

    Required field. Defaults to User and can be changed by selecting data from the drop-down list. Valid values are Archive, Process, Role, and User.

    *Owner

    Required field. Defaults to Private. Valid values are Private and Public.

    Query Definition

    Enter the definition of the query.

     

  11. Select the OK button to save the new query.

    OR

    Select the Cancel button to return to the Fields tab.

To Join Records:

  1. Select the Records tab. The Query Manager page - Records tab is displayed. This page displays different information depending when the tab is selected. If the tab is selected after the initial search, then the page is displayed with no information. If the tab is selected after the Query tab is selected, then the page is displayed with the information populated from the Query tab.
  2. Select the Join Record link. The Select Join Type page is displayed.

    Select Join Type Page

  3. Select the applicable radio button depending upon the type of join.
  4. Select the OK button. This will join the record in the query.

To Work with Fields:

At this point the records and fields have been selected and saved.

  1. Select the Fields tab. The Query Manager page - Fields tab is displayed.

    Query Manager Page - Fields Tab

    EmpowHR identifies each field with a letter preceding the field name. The letter corresponds to the record from which the field is chosen. The records are labeled in sequential order, according to when the record is chosen.

  2. Select the Reorder/Sort button in the upper-right corner of the Query Manager page - Fields tab to resort the fields in a different order in the query output. The Edit Field Ordering page is displayed.

    Edit Field Ordering Page

  3. Reorder columns by entering column numbers on the left under New Column. Columns left blank or assigned a 0 and will be automatically assigned a number. Change the order by entering numbers on the right under New Order By. To remove an order that has a number, leave the field blank or enter a 0.
  4. Select the OK button to display the new order of the fields.

To Add Criteria:

This option allows the user to narrow down the amount of records in the query output and to choose specific types of data needed to add criteria to the query.

  1. Select the Criteria tab. The Query Manager page - Criteria tab is displayed. The Criteria tab has several criteria elements. EmpowHR added these elements automatically to the query when the records were joined.

    Query Manager Page - Criteria Tab

  2. Select the Add Criteria button to add the criteria for the report. The Edit Criteria Properties page is displayed.

    Edit Criteria Properties Page

  3. Complete the fields as follows:

    Field

    Instruction

    Choose Expression 1 Type

    Select the applicable radio button. Valid values are Field and Expression.

    Expression 1 Choose Record and Field

    Description

    Record Alias.Fieldname

    Displays the field name selected from the Fields page.

    Field

    Description/Instruction

    *Condition Type

    Required field. Defaults to equal to. Change if applicable by selecting data from the drop-down list. The following table describes the available Condition Types. For each Condition type, Query manager offers a not option that reverses its effect. For example, not equal to returns all rows that equal to would not return.

    Choose Expression 2 Type

    Displays the value that corresponds to the Expression 1 Type.

    Expression 2 Define Constant

    Instruction

    Constant

    Enter the constant or search for and select a constant by selecting the search icon.

     

    Based on the options selected in each field, a new page may be displayed. Enter applicable information on each page.

  4. Select the OK button to save the entries. The Query Manager page - Criteria tab is displayed.

    OR

    Select the Cancel button to cancel the entries. The Query Manager page - Criteria tab is displayed.

Other Ways to Add/Edit Criteria on the Query Tab:

  1. Select the Query tab. The Query Manager page - Query tab is displayed.
  2. Select the + next to the field to add criteria to that field. The Edit Criteria Properties page is displayed.
  3. Add/edit the applicable criteria.
  4. Select the OK button.

Other Ways to Add Criteria on the Criteria Tab:

  1. Select the Criteria tab. The Query Manager page - Criteria tab is displayed.
  2. Select the Add Criteria button. The Edit Criteria Properties page is displayed.
  3. Select the search icon in the Expression 1 group box. The Select a field page is displayed.

    Select a field Page

  4. Select the Show Fields button to view the record.
  5. Select any link under Select a Field to select the applicable record. The Edit Criteria Properties page is displayed.

To Remove Criteria:

  1. Select the Criteria tab. The Query Manager page - Criteria tab is displayed.
  2. Select the - beside the applicable criteria statement to delete. The criteria is deleted.

    Note: There is no confirmation popup. Selecting the - deletes the criteria.

To Work with Prompts:

Queries can be designed to prompt for information when they are run. Therefore, the results of the query are narrowed to only the data matching the information entered, rather than data from all records.

  1. Select the Criteria tab. The Query Manager page - Criteria tab is displayed.
  2. Select the Add Criteria button. The Edit Criteria Properties page is displayed.
  3. Select the search icon in the Expression 1 group box. The Select a field page is displayed.

    Select a field Page

  4. Select the Show Fields button. A list of available fields is displayed.
  5. Select a field name. You are returned to the Edit Criteria Properties page.

    Edit Criteria Properties Page

  6. Select the New Prompt link. The Edit Prompt Properties page is displayed.

    Edit Prompt Properties Page

  7. Review the information on the Edit Prompt Properties page and make any changes if applicable.
  8. Select the OK button to save any changes made. You are returned to the Edit Criteria Properties page.

    OR

    Select the Cancel button to close the page and return to the Edit Criteria Properties page.

  9. On the Edit Criteria Properties page, select the drop-down list next to the Condition Type.
  10. Select like.
  11. In the Choose Expression 2 Type group box, select the Prompt radio button. The Define Prompt field is displayed.
  12. Change the Heading Type as applicable.
  13. Change the Heading Text as applicable. The Heading Text is the message that will be displayed when prompted.
  14. To search the prompt selections, verify that the value Prompt Table is selected on the *Edit Type drop down.
  15. Select the OK button. The Edit Criteria Properties page is displayed.
  16. Select the OK button. The Query Manager page - Criteria tab is displayed.

To Work with Translate Values:

When selecting fields, sometimes it is necessary to join to another record to retrieve the description for that field. For some fields, EmpowHR includes an XLAT value that allows the viewing of the descriptive version of the field without going to a separate table.

  1. Select the Fields tab. The Query Manager page - Fields tab is displayed. On the column headings above the fields, if the field is a translate value, an N will appear under the XLAT column heading.
  2. Select Edit beside a field name. The Edit Field Properties page is displayed.

    Edit Field Properties Page

  3. The Heading field gives the option to either select RFTShort or RFTLong for either a short or long description. Make the applicable selection.
  4. Select the OK button. The Fields tab is displayed. An L now appears in the XLAT column heading.

To Export Data:

Query Manager allows the export of data to Excel or to a text document in CSV format. Export data is derived from the Run tab.

  1. Select the Query Manager component.
  2. Search for a query that has been created. The Query Manager page is displayed with a list of available queries. Each query has the option of either being run in an Excel or HTML format.
  3. Select the Run to HTML or Run to Excel link without opening the query.
  4. Select the Open button to open the type of selection made and view the query.

    OR

    Select the Save button to save a file.

    OR

    Select the Cancel button to return to the page.

See Also

Query Manager

Finding an Existing Query