on 2024 Aug 09 6:44 AM
SAP Signavio Process Intelligence
In a dashboard within SAP Signavio Process Intelligence, I want to calculate a proportion/ percentage of cases which include a specific activity ("TT Submitted") AND have one event-level attribute with the value NULL.
For a simpler version of the script (percentage of cases which include a specific activity) I use this script:
SELECT
(COUNT(case_id)
FILTER (WHERE (EVENT_NAME MATCHES ('TT Submitted'))))
/ COUNT(case_id)
* 100
FROM THIS_PROCESS
I would really appreciate help from the forum. Thanks.
Kind regards,
Vladimir
Hi
try this whether its fine.
SELECT
(COUNT(CASE WHEN EVENT_NAME = 'TT Submitted' AND appointmentid IS NULL THEN 1 END))
/ NULLIF(COUNT(case_id), 0) * 100 AS percentage
FROM THIS_PROCESS;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.