I am a fairly new user of QGIS having a question regarding dissolve functionality.
I am working with the NUTS-2 shapefiles provided by EU, which I have imported in QGIS. To ease the discussion, I have created a new layer with only Denmark and Netherlands as you can see in the picture below.
The corresponding attribute table is the following.
The fields describe the ID and name for each NUTS node, as well as the country code. I have introduced a new attribute field, called Merge_attr.
Based on the aforementioned, I have managed to dissolve the polygons with the same attribute value of Merge_attr. However, I would like to dissolve polygons based on the Merge_attr value only when they belong to the same country and potentially only when they are adjacent.
Is it possible to dissolve or merge polygons that have a "valued" attribute which is not exactly the same but similar (i.e. under some other condition). For example, would it be possible to merge polygons that belong to the same country and the difference of their "Merge_attr" values is smaller than 0.5?