Use field calculator and create a copy of the field (let's call it key_biomechanical_features_2
) with the following expression. It requires a field with unique id, corresponding to the $id
(this field is here called id
) that defines the order/sequence. Change key_biomechanical_features
(twice) to the name of your initial field. Copy the result back to your initial field (see below for details).
if (
"id" >=3 and "id" <= 7,
attribute (
get_feature_by_id (@layer, $id-1),
'key_biomechanical_features'
),
"key_biomechanical_features"
)
Screenshot: from id 3 to id 7, it takes the value from the last entry of the key_biomechanical_features
- see the initial values in the 3rd column, the result in the last column:

By the way: If you want to have the result back in the original field rather than in a copy of the field, copy the created key_biomechanical_features_2
back to the initial key_biomechanical_features
. In the field calculator, check Update existing field
, select the initial field and as expression, enter the name of the new (copied) field.
If you do it in one step (by updating an existing field), all the moved entries will have the same value, the one of the first entry as it takes first updates the first entry, than takes this value for the next one and so on.