How would/could I use the select by expression tool to select only the first row for each origin_id group? The rows with a yellow border are the ones I want selected.
QGIS Select by Expression – Selecting First Row for Each Group Using Select by Expression in QGIS
qgisselect-by-expression
Best Answer
You can use:
You did not specify the sorting of your table so I assume you use the default order by feature id (
$id
). If you use another sorting, change theorder_by:=
part to a field you wish to sort by. For example to sort bydestination_id
: