7

You can use the following expression if there is one polygon. @layer_name + ' (' + to_string(array_get(array_agg( "NUMPOINTS" ), 0)) + ')'


4

Use this expression on the point layer: overlay_within('wetland', id, filter:=category='wetland')[0] wetland is the name of the polygon layer id is the name of the wetland id category is the name of the field in the wetland layer containing the string wetland See the documentation about the overlay_within() function. Here, points are labeled with the ...


4

You may just double click on the legend text (in the legend properties panel, you need to deselect the auto-update option) and edit the legend text (you could just type the value or use an expression to retrieve it from the attribute table) If you want to use an expression one possible example is display_expression( 'display_expression( 'numpointsofHR', ...


2

The simplest way of doing this, is to go back to the map window, right click the layer and select "Show feature count". This will give you the feature count in the legend both in the map window and in your layout. ,


2

One way would be use the "Attributes Form" in the layer properties, and the Aggregate function. Right-click the point layer that you want the automatic attributation assisgned to Head to the "Attributes Form" menu, and select the Field that you want to assigned the label to. You will see a "Defaults" option at the bottom of ...


Only top voted, non community-wiki answers of a minimum length are eligible