I have a points geometry layer 'POINTS' with the field "ALTITUDE". And I have a polygon geometry layer 'POLYGONS' with the field "TERRITORY".
I would need a labeling expression to label the points layer but only the highest value within or nearest to the polygons layer. Like this handmade screenshot capture: