I have layer of points that correspond to a layer of lines. I need to find the distance from the beginning and end point of the line to the corresponding point. I used line_locate_point to get the distance from the start point but I can not figure out how to calculate the distance from the end point. Here's what I have for the start point.
line_locate_point(geometry:=geometry(get_feature('path','Jct_ID',"Point Code")),point:=$geometry)
