I have a layer of village points and I want to limit the number of features rendered to a maximum of 50 points. I tried using
Layer Properties > Labels > Rendering > Limit number of features to be labeled to 50. But this obviously limits only the labels, and not the points themselves, like in the image below:
I also tried
Layer Properties > Style > Control feature rendering order but it does not seem to do anything about the limiting of the points rendered in the map. How can I limit the number of features to be rendered, preferably using an expression/the Field calculator (so that I can dynamically set the same for other similar layers)?
I am using QGIS 2.18.