Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Max75
Contributor II
Contributor II

Last Log

Hello everyone,

I need your support to create a table that starting from an observation date, returns me the volumes of contracts divided by state. The starting point is a table where logs are recorded in time stamp format.
I need to create a date in DD/MM/YYY format, and then the count of practices based on the status present in the last daily log.
Also, if on the day following the log entry, no status changes result, the status of the day should be taken
I attach starting base and expected result.
Thanks for those who can help me.

Ps. Only in set analysis

contract_id_bbus_log event_date_bbus_log proposal_status_bbus_log
5000000000 15/03/2021 12:32 DRAFT
5000000000 16/03/2021 11:22 DRAFT
5000000000 16/03/2021 12:48 DRAFT
5000000000 16/03/2021 12:53 DRAFT
5000000000 17/03/2021 17:02 IPT
5000000000 17/03/2021 20:06 APP
5000000000 17/03/2021 20:06 IPF
5000000000 17/03/2021 20:34 APP
5000000000 17/03/2021 20:35 APP
5000000000 17/03/2021 20:35 IPF
5000000000 19/03/2021 11:36 IPF
5000000000 19/03/2021 12:01 IPF
5000000000 19/03/2021 12:04 SUS
5000000000 19/03/2021 12:04 IPF
5000000000 19/03/2021 12:05 SUS
5000000000 19/03/2021 13:49 IPF
5000000000 19/03/2021 13:51 SUS
5000000000 19/03/2021 13:58 IPF
5000000000 20/03/2021 13:23 IPF
5000000000 24/03/2021 14:44 IPF
5000000000 24/03/2021 14:44 IPF
5000000000 25/03/2021 14:31 IPF
5000000000 26/03/2021 18:50 IPF
5000000000 26/03/2021 19:03 IPF
5000000000 26/03/2021 19:04 IPF
5000000000 29/03/2021 19:11 IPF
5000000000 29/03/2021 19:25 IPF
5000000000 29/03/2021 19:25 APP
5000000000 17/05/2021 11:17 APP
5000000004 17/03/2021 14:30 DRAFT
5000000004 17/03/2021 16:56 IPT
5000000004 17/03/2021 20:20 IPF
5000000004 17/03/2021 20:26 IPF
5000000004 18/03/2021 12:33 IPT
5000000004 18/03/2021 12:34 IPF
5000000004 18/03/2021 14:36 IPF
5000000004 18/03/2021 14:37 APP
5000000004 18/03/2021 15:15 IPF
5000000004 18/03/2021 17:44 IPD
5000000004 18/03/2021 17:45 IPT
5000000004 18/03/2021 17:46 IPF

Risultato atteso

Observation Date DRAFT IPT APP SUS IPF
15/03/2021 2 4 6 4 3
16/03/2021 3 3 2 9 7
17/03/2021 3 9 8 6 5
18/03/2021 2 6 5 3 5
19/03/2021 8 1 8 9 5
Labels (1)
0 Replies