I have the result of a network analysis (using the QNEAT3 plugin tool 'OD Matrix from Layers to Lines (m:n)') showing the shortest paths from set points, via the network, to multiple end points. This has created several duplicate "origin_id"'s showing the cost to each end point
I am looking to dissolve the result based on the "origin_id" but keeping the value with the lowest "total_cost". It feels as though there should be a simple tool for this, but I cannot find it.
I also thought I'd add an example of what it looks like for you, but since images do not seem to work properly here, please see the crude one below. It consists of two endpoints with two different origin points, and I wish to keep the lowest value in the "total_cost".
origin_id | destination_id | total_cost
24505 | 441 | 283,69
24505 | 442 | 320,74
24623 | 441 | 335,08
24623 | 442 | 331,4
In this example, I would like to keep 24505/283,69 and 24623/331,4 as they are the lowest values for each "group" of origin_id.


