I am using 3.12 QGIS version. I have got two point layers, and one line layer.
I wanna put a label on line layer, that calculate "sum" of intersected points or any mathematical calculation.
The main purpose is collecting any points (value) which intersected with line, but to keep in mind, we assume there are thousands point intersected, so when we build the code in expression dialog, we dont need to define the points layer, because generalizing the solution would be better.