I've got a line layer called "Water Lines - Proposed" that has multiple line features. Each feature has a 'Type of Feature' field (multiple features may share the same value), a 'Name' field (each feature has a unique name), and a 'Length' field, which is calculated.
I've got a second layer with a value relation field allowing me to select multiple features from the "Water Lines - Proposed" layer by 'Name' from a filtered list with [Spillway (sill)] as the 'Type of Feature'. I would like to then calculate the total length of all features that have been selected in this list ('Spillway (sill) Length').
The following expression worked for getting the length of a single feature, but I cannot figure out how to modify it now that I have allowed for multiple selection.