Objective
After completing this lesson, you will be able to use date types to achieve desired results in SAP SuccessFactors Canvas Reports.
Default Behavior
Current Date or Show All
The first table pulled into a new query in Advanced Reporting will become the "Driving" (or "controlling") table and default to the Current Date date option (for effective dated tables) or the Show All date option (for table with no effective dates).
This example shows Job Information data for employee mhoff1. By default, the query will return the most current record - as identified by "today" being between the Effective Start and Effective End Dates:
This example shows Compensation data for the employee mhoff1. Note that here, the employee can have multiple Pay Components current as "today", hence the multiple records:
Show All Records
To display all records for this employee, simply change the date options to Show All. Note that this date option is the default for tables that are not effective dated.
This example shows all compensation data for employee mhoff1. These records will include all compensation pay components since the employee was hired.
As Of Date
To display records that were current on a specific date, choose As Of Date. Setting an As Of Date to December 09, 2016 will return records where December 09, 2016 is between the Effective Start and Effective End Dates.
Date Range (On Start Date)
To display records that started in a certain date range, select Date Range (On Start Date).
Setting a Date Range (On Start Date) from December 09, 2016 to December 09, 2016 will display records where the Effective Start Date is within this date range.
Date Range (Validity)
To display records that were active in a certain date range, select Date Range (Validity).
Setting a Date Range (Validity) from April 12, 2016 to April 12, 2016 will display records are active within this date range.
Multi-Table Queries
When a query has more than one table, the first table pulled into the query will become the driving (or controlling) table, which is identified by the green outline in Object View. Subsequent tables will (by default) show records for the current date.
Effects on Results - Current Date
Use the default Current Date option to see the records that are applicable today.
The example shows a query on the Job Information table and the Compensation table, both showing the current date. When these tables are used in the same query, it will match the current date Job record with the current date Compensation records.
Effects on Results - Current Date + Show All
Use Current Date on the driving table to retrieve the current / active records from the driving table and Show All on the related tables to only see historical values.
This example shows a query on the Job information table showing mhoff1 Job Title as of today and all records from the Compensation Information table to view his compensation history:
The Driving Table Start Date option is only available on related tables. This option will retrieve the record that is applicable at the Start Date of the driving table.
Here we have a query on the Job Information table showing Job records January 1st 2011, which will show active employees as of that date. The compensation information returned is the active compensation as of the same date.
Exercise: Create a Query with Advanced Reporting: Part A
Exercise: Create a Query with Advanced Reporting: Part B
Exercise: Create a Query with Advanced Reporting: Part C
Exercise: Create a Query with Advanced Reporting: Part D
Exercise: Create a Query with Advanced Reporting: Part E