I have data that looks similar to the following:
(case_id, create_date, status)
I want to be able to select the most recent document for each case_id, and then sum the counts of the different statuses. So if my data looked like the below
case_id: 1 | create_date 2019-2-20-00:00:00 | closed
case_id: 1 | create_date 2019-1-20-00:00:00 | working
case_id: 1 | create_date 2019-1-10-00:00:00 | assigned
case_id: 2 | create_date 2019-2-10-00:00:00 | closed
case_id: 2 | create_date 2019-1-00-00:00:00 | assigned
case_id: 3 | create_date 2019-1-10-00:00:00 | assigned
case_id: 4 | create_date 2019-1-20-00:00:00 | working
case_id: 4 | create_date 2019-1-10-00:00:00 | assigned
The results would show
assigned: 1
working: 1
closed: 2
I would like to do this in a Kibana visualization, is this possible?
Below I have uploaded an image where I'm able to get a data table showing the latest status of each ticket, now I just need a "Count" of each of those statuses.