Migration Workbench | Workspace: CJIS environment Sample data
MFA RE
Validation › Copy of Monthly Crime Trend

Compare results

MismatchCJIAgency L onlyAccess logged
Object: Copy of Monthly Crime Trend  ·  Source: IBM Cognos Analytics  ·  Target: Power BI report  ·  Parameters: Agency L, 1/1/2024 to 12/31/2024
Finding: Date basis switched to reported date. (Defect seeded on purpose in this sample workspace.)
Checks
CheckSource (Cognos)Target (Power BI)Result
Row count1212Match
Total of incidents1,5071,503Mismatch
Record hashaac89bcd577cf116424f2419Mismatch
Access and audit
Classification
CJI
Row security
By agency AC-3
Session
MFA, CJIS-trained user IA-2(1)
Data location
Agency network SC-28
Run by
Validation service, read only AC-6
This view
Logged AU-2
Evidence
Retained with the release AU-11
In source, missing in target (1)
monthincidents
2024-12130
Source query
SELECT substr(i.occurred_date,1,7) AS month,
       COUNT(*) AS incidents
FROM incident i
WHERE i.agency_id = 12
  AND i.occurred_date BETWEEN '2024-01-01' AND '2024-12-31'
GROUP BY substr(i.occurred_date,1,7)
Power BI dataset query
SELECT CONVERT(char(7),
       i.occurred_date, 126) AS month,
       COUNT(*) AS incidents
FROM incident i
WHERE i.agency_id = @Agency
  AND i.reported_date BETWEEN @DateFrom AND @DateTo
GROUP BY CONVERT(char(7), i.occurred_date, 126)