Impact of Extended Tables and Business Rules on Performance Analytics Data CollectionDescription<!-- div.margin{ padding: 10px 40px 5px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing: 8px; border-collapse: separate; } table.internalTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:0; } .sp td{ border-bottom: 1px solid; border-right: 1px solid; border-color:#E0E0E0; background-color: #ffffff; height: 20px; padding-top: .5em; padding-bottom: .5em; padding-left: .5em; padding-right: .5em; } .sphr td{ border-right: 1px solid; border-bottom: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .5em; padding-bottom: .5em; padding-left: .5em; padding-right: .5em; height: 20px; } .title { color: #D1232B; font-weight:; font-size:25px; } .hd1{ color: #D1232B; font-weight:; font-size:18px; } .hd2{ color: #646464; font-weight:bold; font-size:16px; } .hd3{ color: #7a7a7a; font-weight:; font-size:16 px; text-decoration:; } .hd4{ color: #000000; font-weight:bold; font-size:14 px; text-decoration:; } --> Impact of extended tables and business rules on Performance Analytics data collection OverviewWhen viewing a Performance Analytics scorecard or dashboard, the number of records included in the score may be different from the number of records on the Records tab. The difference is most visible when using Count as the Aggregate. The difference can be caused by extended tables and business rules. Extended tablesA table may extend another table to inherit fields from the parent table. When a record is created on the child table, a corresponding record is created with the same sys_id value on the parent table. For more information and a list of default child tables, see Tables and Classes in the product documentation. Impact of before query business rules Some before query business rules may limit access to certain tables, such as by filtering the records a user can view. For example, if you extend the Incident table, you can filter the list of Incidents to show only the parent Incident table by adding the condition sys_class_name = 'incident' in a before query business rule. Data collection for Performance Analytics is designed for high performance and accesses data without running business rules. When collecting scores from a table like Incident in the above example, the business rule filtering the list of records does not run. Records from the base Incident table as well as any child tables are counted. Viewing queriesIn the data collection log (Performance Analytics > Job Logs) you can view the query being sent to the database. When querying an extended table, the log entry appears similar to sys_class_name in (‘[EXTENSION_TABLE]’,’[BASE_TABLE]’) where the EXTENSION_TABLE and BASE_TABLE are queried to retrieve the indicator score. Creating consistent queries To create a data collection query that is consistent with what users experience when viewing records through a list or report, add a condition to the indicator source that filters based on the sys_class_name of the table you are querying. In the incident example, you can add the condition [Task type][is][Incident] to collect only data from the Incident table and not any child tables.