Hello,
I need a Help on a KPI about OTC .
I want to calculate time by hours between,
(Cases which goes through "Lead Status Set To: Open" and does not go throught "Lead Status Set To : Assigned".) and current time.
Or can you say what is wrong with my code ?
HOURS_BETWEEN (
CASE
WHEN MATCH_ACTIVITIES ( NODE 'Activity Status Set To: Open' ] ) and NOT MATCH_ACTIVITIES ( NODE ( 'Activity Status Set To: Assigned' ] ) THEN "ACTIVITIES"."EVENTTIME"
ELSE
-TODAY ( )
END ,
TODAY ( )
)