Have you tried looking at flow aggregates? https://developer.genesys.cloud/analyticsdatamanagement/analytics/aggregate/flow-query tFlowDisconnect should give you a count of sessions disconnecting in the IVR. You could group by conversationId if you looking for individual examples of conversations where this occurred for further investigation.
Querying for the tFlowDisconnect metric, grouped by the disconnectType dimension should show that difference between the flow disconnecting normally and the customer abandoning while in the IVR.
You would need to remove your filter for the disconnectType of peer. I was suggesting grouping by disconnectType. If you want to subdivide that by flowname as well, just do multiple group bys. Something like
No metrics do not natively subdivide actions by tasks in the flow and in order to be relevant for metrics from the aggregate endpoint, there would need to be a corresponding metric for each task but we do not currently support that level of granularity.
One feature you could take advantage of in this scenario is to setup flow outcomes for the task that you want to track. Set Flow Outcome action - Genesys Cloud Resource Center This wouldn't help you retroactively, but if you wanted to setup something specific to track a task a flow outcome can be setup to add tracking to it which will emit the metrics that come along with flow outcomes. nFlowOutcome would show you each time that outcome is used.