Meta Queries Workshop Scott Joyce Advanced Meta Queries Which - - PowerPoint PPT Presentation

meta queries workshop
SMART_READER_LITE
LIVE PREVIEW

Meta Queries Workshop Scott Joyce Advanced Meta Queries Which - - PowerPoint PPT Presentation

Meta Queries Workshop Scott Joyce Advanced Meta Queries Which table do I use? How do I link two or more tables? Tips and Tricks New Features 2 Reference Guides & Standard Tables Keystone has delivered several standard


slide-1
SLIDE 1

Meta Queries Workshop

Scott Joyce

slide-2
SLIDE 2

2

Advanced Meta Queries

  • Which table do I use?
  • How do I link two or more tables?
  • Tips and Tricks
  • New Features
slide-3
SLIDE 3

3

Reference Guides & Standard Tables

  • Keystone has delivered several standard

Keystone Meta Tables with the last few software updates.

  • These tables will have a number of links built in,

which customers can reference and reuse to build their own tables.

slide-4
SLIDE 4

4

Reference Guides & Standard Tables

  • Using Standard Meta Tables is ideal since it:
  • allows you to share queries easier
  • Easier to support
  • Enable you to take advantage of new features and

integration

  • An easy way to reuse these tables for your own

purposes – to minimize the data that is accessible

  • is to copy the standard table to a customer

table using the “View/Copy Keystone Meta Tables” utility (KZ0333).

slide-5
SLIDE 5

5

KEMS Standard Meta Tables

  • Employee Data – comprehensive list
  • f all employee-related data fields

(658 fields and counting!)

  • Other standard tables include:
  • Applicants
  • Benefits Enrollment
  • Employee Leave
  • KeyTime
  • Leave Transactions
  • Missouri CoreData
  • Position Control

Roster

  • Salary Guides
slide-6
SLIDE 6

6

FIS Standard Meta Tables

  • General Ledger Detail
  • Invoice History
  • Purchase Orders
  • Vendor
slide-7
SLIDE 7

7

Reference Guides

  • We have put together reference guides /

complete lists of data files and fields in Keystone’s FIS/KEMS applications. These are available in our Customer Resources / Web SCARs portal:

  • KEMS: Go to User Manuals  KEMS (HR, Payroll)

 Meta Queries

  • Financials: Go to User Manuals  Financials 

Meta Queries

slide-8
SLIDE 8

8

Meta Table

  • Create the Meta Table (KZ0133)
  • Manual entry or “Load” option
  • Link Files
  • Primary File
  • Secondary File
  • Sort Options
  • Renaming Meta Display (Log Out)
slide-9
SLIDE 9

9

Locating Data Fields

  • Place your cursor in the field you would like to locate:
slide-10
SLIDE 10

10

Locating Data Fields (cont’d)

  • Click the help icon ( ) or hit the F1 key:
slide-11
SLIDE 11
  • New / Save / Save As / Delete
  • Copy / Share / Unshare / Add to Shortcuts
  • Show/Hide Criteria
  • Add Criteria / Properties / Sort / Multi-Level Sort
  • Run Query / Run Query Sample
  • Export Options (Excel, Text, XML)
  • Exit

Meta Queries Toolbar / Icons

11

slide-12
SLIDE 12

12

Meta Query

  • Create the Query
  • View fields (select)
  • Load All Option
  • Test Sample Data
  • Organize the Report
  • Insert, Delete Columns
  • Add Criteria
  • Test Criteria
  • Nest Criteria
  • Use the ? Option
  • Multiple Sort Option
  • Operators
slide-13
SLIDE 13

13

Operators

  • #

not equal to Example; BENEFIT.GROUP # ADMIN Results; All benefit groups except ADMIN

  • <

less than Example; HIRE.DATE < 01.01.XX Results; All employees hired before 01.01.XX

  • =

equal Example; ZIP = 08002 Results; All employees with a zip code equal to 08002

  • >

greater than Example; HIRE.DATE > 01.01.XX Results; All employees hired after 01.01.XX

slide-14
SLIDE 14

14

Operators

  • begins with

begins with Example; DED.CODE begins with 1 Results; Deduction codes that begin with 1 (100, 101, 102)

  • between

between Example; ANNUAL.SALARY between 10000, 20000

  • r 10000;20000

*Note: Do not use commas or select from table Results; Employees with an annual salary between $10,000 and $20,000

  • contains

contains Example; DED.CODE.DESC contains HEALTH Results; Deduction codes with the word HEALTH in it Use ‘;’ to select multiple codes

slide-15
SLIDE 15

15

Values

slide-16
SLIDE 16

16

Operators

  • begins with

begins with Example; DED.CODE begins with 1 Results; Deduction codes that begin with 1 (100, 101, 102)

  • between

between Example; ANNUAL.SALARY between 10000, 20000

  • r 10000;20000

*Note: Do not use commas or select from table Results; Employees with an annual salary between $10,000 and $20,000

  • contains

contains Example; DED.CODE.DESC contains HEALTH Results; Deduction codes with the word HEALTH in it

slide-17
SLIDE 17

17

Operators

  • does not contain does not contain

Example; BLDG.DESC does not contain HIGH Results; All buildings that do not have High School in the description

  • ends with

ends with Example; DED.CODE.DESC ends with TSA Results; Deduction codes with TSA as the last word in the description

  • in

in Example; DED.CODE in 997;998;999 Results; Returns employees with deduction codes 997 OR 998 OR 999

  • is not null

is not null Example; DED.MAX.BALANCE is not null Results; All deductions that have balances

  • is null

is null Example; RET.TYPE is null Results; All employees with no retirement type info

slide-18
SLIDE 18

18

Operators

  • sounds like

sounds like Example; LNAME sounds like SMITH Results; Employees with the last name of Smith, Smyth, Smithe

  • unlike

unlike Example; DED.CODE unlike 997;998;999 Results; Returns employees that do not have deduction codes 997 OR 998 OR 999

slide-19
SLIDE 19

19

Dates

TIP: These are “relative dates” – relative to the date when the query is executed. Useful for scheduled/recurring queries.

slide-20
SLIDE 20

20

Query Options

  • Save
  • Save As (My Queries)
  • Rename
  • Share, Copy
  • Add a Short Cut
  • Scheduler Option
  • Import/Export
slide-21
SLIDE 21

Sharing Queries

21

  • Email query to a Keystone user
  • utside your organization
slide-22
SLIDE 22

Sharing Queries

22

IMPORT EXPORT

slide-23
SLIDE 23

23

Email / Schedule Queries

slide-24
SLIDE 24

24

Scheduler

Date Field Hierarchy 1) Date – a specific date, like “1/1/12.” 2) Day of Month – a number between 1 and

  • 31. (You must leave

“Date” blank for this to be enabled.) 3) Day of Week – select as many as you like. (You must leave Date & Day of Month blank for this to be enabled.)

**NOTE: In order for the scheduler to run, you must enter one “Date” entry: (Date, Day of Month, or Day

  • f Week), and one “Time”

entry (Time or Interval).**

Time Field Hierarchy: 1) Time – Enter a time, either in military time (16:00), or regular format (4:00pm – no spaces or periods). 2) Interval – Enter a time in minutes. E.g., entering “60” will make the query run every hour.

**ADDITIONAL NOTE: The ability to schedule queries can be disabled for specific users via Keystone

  • security. Please contact

Keystone to learn more**

slide-25
SLIDE 25

Scheduler (cont’d)

Args – if your query has run-time prompts, you may enter a list of arguments, separated by semi-colons. You can use system variables, such as: @RETURN (no entry), @DATE (current date), @TIME (current time), @BOM (beginning of month, @EOM (end of month, @PERIOD (current month / year). You can also add/subtract days (e.g., “@DATE-1” means “yesterday.”) Clear Schedule – Ability to clear the scheduled job (removes all selections on this screen).

slide-26
SLIDE 26

26

Advanced

File (for local exports): When the Meta Query is run manually and exported, you can direct the results to a specific file location. Enter a valid path and filename, without the extension (for example, \\server\directory\file). The filename can include “@DATE” or “@TIME”. Type (for scheduled jobs): Designates the file format used when the Meta Query is run from the scheduler (CSV, TAB, PIPE or XML). File (for scheduled jobs): When the Meta Query is run from the scheduler, you can direct the results to a specific file location. Enter a valid path and filename, without the extension (for example, \\server\directory\file). The filename can include “@DATE” or “@TIME”. Format – See following slides.

slide-27
SLIDE 27

Meta Query results – new format options

  • Added Meta Query format options – Meta

Query properties icon –

  • Select the “Advanced” tab
  • The options are:
  • Standard (Normalized),
  • Combine Multivalues, and
  • Standard (Remove Duplicates).
  • Only one option can be selected at a time
  • The second and third options are only

available when using a single multivalued association in your columns

27

slide-28
SLIDE 28

Advanced Format Options: “Standard (Normalized)” Example

  • Default format – same as previous versions:

28

slide-29
SLIDE 29

Advanced Format Options: “Combine Multivalues” Example

  • The multivalues are combined into one cell,

with line breaks between each value:

  • Displays cleanly with the line breaks in Meta Queries

and in Excel. Sorting is still available.

  • CON: Can’t do math on the multivalued data

29

slide-30
SLIDE 30

Advanced Format Options:

“Standard (Remove Duplicates)” Example

  • Similar to “standard” format, but single valued

fields do not repeat/duplicate:

  • The multivalued data displays on separate rows
  • Displays cleanly, and you can do math on all data
  • CON: Sorting is not available

30

slide-31
SLIDE 31

Search Meta Tables

  • Added the ability to search for fields in

Meta Tables

  • Can search by the actual database field name as well
  • Can click on the fields to add them to as a query column

31

slide-32
SLIDE 32

Keystone Meta Tables

  • Changed table heading from Keystone Meta

Tables to *Keystone Meta Tables.

  • These “standard tables” will now display at the top of the screen, above

the Customer Meta Tables

32

slide-33
SLIDE 33

Meta Query Maintenance – improved searches

  • On the Meta Query Maintenance Screen, modified the

lookup to allow partial searches as well as searches on upper and lower case in User and Name fields.

33

slide-34
SLIDE 34

Meta Query Maintenance – improved error checking

34

slide-35
SLIDE 35

Meta Table/Query Cleanup utility

  • New utility added - "Meta Table/Query Cleanup“ (KZ0330)
  • 1. Delete all customer meta tables that are not associated with any queries,
  • 2. Delete all queries that have not been accessed or run since XX/XX/XX date,
  • 3. "Refresh" existing queries so they match the field names in the current
  • tables. (Example, if you have updated the field name in a Meta Table).
  • Also, added created / modified dates to Meta Tables; Modified Meta Table entry not to

allow the user to delete a table that is being used by a query, not allow user to delete a field being used on a query, report to the user if the table is being changed and it identifies a query that has fields that are not on the table, report and change the Display Name on the query if it does not match what is being saved on the Table.

35

slide-36
SLIDE 36

Miscellaneous Enhancements

  • Added the ability to create task notifications (send e-mails) when a

new Meta Query is copied, shared and unshared. This is defined in KZ0050

  • Added ability to “double-click” Criteria in Meta Queries to modify

them (right-click allows you to add/delete)

  • Added Meta Query Property to skip sending emails if no query results

are found.

  • Added a warning in Meta Table Maintenance (KZ0133) if the Meta

Display is a duplicate on the screen. Both options are only currently applicable when entering the data elements, not when loading from a dictionary.

36

slide-37
SLIDE 37

Miscellaneous Fixes

  • In Meta Table Maintenance, added a check for a comma

in the Meta Display field on the META and APPMETA screens.

  • Removed empty attachment files for emailed queries, and

added “No results matching selection criteria found.”

  • Data with the format of nnnn-nn-nnn will no longer be

reformatted when exporting to excel.

  • Corrected all known problems with Meta Query dates

(created, accessed, modified).

37

slide-38
SLIDE 38

How to use Excel

Everyone uses Excel a little differently – there is no “right” way! With that in mind, here are some suggestions for analyzing your Meta Query results in Excel …

38

slide-39
SLIDE 39

General Navigation Tips

  • Keyboard shortcuts:
  • Moving around:
  • CTRL+arrows – move to the edge of your data set
  • CTRL+HOME / CTRL+END – move to the top-left or the

bottom-right of the data

  • Select a row: Shift+SPACEBAR
  • Select your data set: CTRL+A
  • Delete a row: ALT, E, D (think: “edit  delete”)
  • Insert a column (or row): ALT, I, C (or R) (think: “insert

column: or “insert row”)

  • Undo: CTRL+Z
  • Redo: CTRL+Y (or F4)

39

slide-40
SLIDE 40

Remove Duplicates

  • Data from Meta Queries, by default, is normalized or “exploded.” In
  • ther words, if your data columns include multi-valued fields, then

your single-valued fields will repeat on multiple rows.**

  • To eliminate duplicates, follow these steps (keeping in mind that you

may be losing multi-valued data).

  • Under the “DATA” tab, click “Remove Duplicates.“
  • Then, select only the columns where your data is duplicated.
  • Click “OK” – and Excel will tell you the results:

** In version 5.8 of Keystone Client, you are able to select different format options for your data. 40

slide-41
SLIDE 41

Formulas

  • There are hundreds of formulas included in Excel. It can be daunting

to figure out where to start.

  • The “Formulas” tab can be useful in sorting through and using any

given function:

  • Useful formulas:
  • CONCATENATE (under the Text group) – Joins several text strings into one string
  • IF (under the Logical group) – Checks a logical test, and returns one value if the

condition evaluates to TRUE, and another value if that condition evaluates to FALSE:

  • COUNT/COUNTA (under the More->Statistical group) – COUNT counts the number
  • f cells in a range, while COUNTA counts the number of cells in a range that are

not empty.

41

slide-42
SLIDE 42

Formulas (examples)

  • CONCATENATE – Joins several text strings into one string:
  • Note the use of a space above (“ “) as one of the text strings.
  • IF – Checks a logical test, and returns one value if the condition

evaluates to TRUE, and another value if that condition evaluates to FALSE:

42

slide-43
SLIDE 43

Other Useful Tips

  • Remove formulas from your data, keeping the

results/values only:

  • Select and copy the fields
  • Click “Copy”
  • Click “Paste  Paste Values” (while keeping the data selected)
  • The values will “overwrite” the existing formulas
  • Use the “$” when referencing a cell in a formula

to always reference a specific column ($A1), row (A$1), or cell ($A$1).

  • Play around with the “Filter” feature – this

provides a number of ways to analyze your data

  • n the fly

43

slide-44
SLIDE 44

PivotTables

  • Subtotals are a useful feature, but PivotTables are

even better:

  • Try “Recommended

PivotTables” –

  • Excel will provide you with a

few suggestions … it might know what you are looking for before you do!

44