Queries: 5
Layouts: 1
5
Latest Valid Data Load Date
|
[Presentation].[Data Load Archive].[Latest Valid Data Load Date]
|
Begin Date
|
IF (?Date_Option_p? = '0' ) THEN ( #prompt('ParamStartDate', 'date', 'current_date')# ) ELSE ( IF ( _day_of_week (current_date,1) > 1 ) THEN (_add_days (current_date, -1) ) ELSE (_add_days (current_date, -3) ) )
|
|
End Date
|
IF (?Date_Option_p? = '0' ) THEN (#prompt('ParamEndDate', 'date', 'current_date')# ) ELSE (IF ( _day_of_week (current_date,1) > 1 ) THEN (_add_days (current_date, -1) ) ELSE (_add_days (current_date, -1) ) )
|
|
WeekNumber
|
_day_of_week (current_date,1)
|
Begin Date
|
IF (?Date_Option_p? = '0' ) THEN ( #prompt('ParamStartDate', 'date', 'current_date')# ) ELSE ( IF ( _day_of_week (current_date,1) > 1 ) THEN (_add_days (current_date, -1) ) ELSE (_add_days (current_date, -3) ) )
|
|
End Date
|
IF (?Date_Option_p? = '0' ) THEN (#prompt('ParamEndDate', 'date', 'current_date')# ) ELSE (IF ( _day_of_week (current_date,1) > 1 ) THEN (_add_days (current_date, -1) ) ELSE (_add_days (current_date, -1) ) )
|
|
BF Date
|
[Presentation].[Case].[DATE_BF_EST]
|
|
Case Count
|
[Presentation].[Case].[Case Count]
|
Aggregate
count
|
Count of Unique PRIs
|
count(distinct [Presentation].[Case].[PRI] for report)
|
|
Active_or_Unassigned
|
CASE WHEN [Presentation].[State].[NAME] in ('Pending','Assigned','Verified', 'Ready_To_Verify') THEN (IF ( #sq($runLocale)#='fr') THEN ( 'Actif' ) ELSE ( 'Active' ) ) ELSE (IF ( #sq($runLocale)#='fr') THEN ( 'Non attribué' ) ELSE ( 'Unassigned') ) END
|
|
Age Group
|
[Presentation].[Case].[Age Group]
|
|
Sub Type Name
|
IF ( [Presentation].[Sub Type].[SUB_TYPE_CODE] in ('ST-176', 'ST-254') ) THEN ( [Presentation].[Sub Type].[NAME]+' ('+[Presentation].[Sub Type].[SUB_TYPE_CODE] +')' ) ELSE ( [Presentation].[Sub Type].[NAME] )
|
|
Average Age
|
average([Presentation].[Case].[CMT_AGE] for [Sub Type Name])
|
|
Oldest Case
|
maximum (distinct [Presentation].[Case].[CMT_AGE] for [Sub Type Name])
|
|
Total Active and Awaiting Calc Cases
|
Total(CASE WHEN ( [Presentation].[State].[NAME] in ('Pending','Assigned','Verified', 'Ready_To_Verify') and [Presentation].[Case].[AWAITING_CALC] = 'Yes/Oui' ) THEN 1 ELSE 0 END for report)
|
|
Total Active and Awaiting Confirm Cases
|
Total(CASE WHEN ( [Presentation].[State].[NAME] in ('Pending','Assigned','Verified', 'Ready_To_Verify') and [Presentation].[Case].[AWAITING_CONFIRM] = 'Yes/Oui' ) THEN 1 ELSE 0 END for report)
|
|
Total Ready to Verify Cases
|
Total(CASE WHEN [Presentation].[State].[NAME] = 'Ready_To_Verify' THEN 1 ELSE 0 END for report)
|
Begin Date
|
IF (?Date_Option_p? = '0' ) THEN ( #prompt('ParamStartDate', 'date', 'current_date')# ) ELSE ( IF ( _day_of_week (current_date,1) > 1 ) THEN (_add_days (current_date, -1) ) ELSE (_add_days (current_date, -3) ) )
|
|
End Date
|
IF (?Date_Option_p? = '0' ) THEN (#prompt('ParamEndDate', 'date', 'current_date')# ) ELSE (IF ( _day_of_week (current_date,1) > 1 ) THEN (_add_days (current_date, -1) ) ELSE (_add_days (current_date, -1) ) )
|
|
Total Number of Intake Cases
|
count([Presentation].[Case].[Case Count] for report)
|
|
Total Intake Cases for Maternity-Paternity
|
Total(CASE WHEN [Presentation].[Sub Type].[SUB_TYPE_CODE] = 'ST-529' THEN 1 ELSE 0 END for report)
|
Assigned
|
total(count(distinct case when ([Presentation].[Case].[DATE_ASSIGNED_EST] between [Begin Date] and [End Date]) then [Presentation].[Case].[ID] else null end) for report)
|
|
Sent for Verification
|
total(count( distinct CASE WHEN ( ([Presentation].[VW_STG_HISTORY].[ACTION_TIMESTAMP_EST] between [Begin Date] and [End Date]) and ([Presentation].[VW_STG_HISTORY].[NEW_STATE] = 'Ready_To_Verify') and ([Presentation].[VW_STG_HISTORY].[OLD_STATE] = 'Assigned') ) THEN [Presentation].[Case].[DBID] ELSE null END ) for report)
|
|
Returned from Verification
|
total(count(distinct CASE WHEN ( ([Presentation].[VW_STG_HISTORY].[ACTION_TIMESTAMP_EST] between [Begin Date] and [End Date]) and ([Presentation].[VW_STG_HISTORY].[NEW_STATE] = 'Reassigned') and ([Presentation].[VW_STG_HISTORY].[OLD_STATE] = 'Ready_To_Verify') ) THEN [Presentation].[Case].[DBID] ELSE null END ) for report)
|
|
Closed
|
total(count(distinct Case when ([Presentation].[Case].[DATE_CLOSED_EST] between [Begin Date] and [End Date]) then [Presentation].[Case].[ID] else null end ) for report)
|
|
Cancelled
|
total(count(distinct Case when ([Presentation].[Case].[DATE_CANCELLED_EST] between [Begin Date] and [End Date]) then [Presentation].[Case].[ID] else null end ) for report)
|
|
Verified
|
total(count(distinct Case when ([Presentation].[Case].[VERIFIED_DATE_EST] between [Begin Date] and [End Date]) then [Presentation].[Case].[ID] else null end ) for report)
|
|
Rejected by Verifier
|
total(count(distinct CASE WHEN ( ([Presentation].[VW_STG_HISTORY].[ACTION_TIMESTAMP_EST] between [Begin Date] and [End Date]) and ([Presentation].[VW_STG_HISTORY].[NEW_STATE] = 'Reassigned') and ([Presentation].[VW_STG_HISTORY].[OLD_STATE] = 'Ready_To_Verify') ) THEN [Presentation].[Case].[DBID] ELSE null END ) for report)
|
|
Sent to Pending
|
total(count( distinct CASE WHEN ( ([Presentation].[VW_STG_HISTORY].[ACTION_TIMESTAMP_EST] between [Begin Date] and [End Date]) and ([Presentation].[VW_STG_HISTORY].[NEW_STATE] = 'Pending') and ([Presentation].[VW_STG_HISTORY].[OLD_STATE] = 'Assigned') ) THEN [Presentation].[Case].[DBID] ELSE null END ) for report)
|
|
Begin Date
|
IF (?Date_Option_p? = '0' ) THEN ( #prompt('ParamStartDate', 'date', 'current_date')# ) ELSE ( IF ( _day_of_week (current_date,1) > 1 ) THEN (_add_days (current_date, -1) ) ELSE (_add_days (current_date, -3) ) )
|
|
End Date
|
IF (?Date_Option_p? = '0' ) THEN (#prompt('ParamEndDate', 'date', 'current_date')# ) ELSE (IF ( _day_of_week (current_date,1) > 1 ) THEN (_add_days (current_date, -1) ) ELSE (_add_days (current_date, -1) ) )
|