[Qgis-user] Fill-down with QGIS expressions

Andrea Giudiceandrea andreaerdna at libero.it
Sun Mar 28 14:47:41 PDT 2021


Totò wrote
> I have a CSV file [0], how to get the "zona_fill" field?
> The "zona_fill" field is the result of the fill-down of the "zona" column.

Hi Salvatore,

I've imported your csv file, copied the features to a new scratch memory
layer, and created a new field named 'zona_fill2' using the Field Calculator
with the following expression:

if( "zona" is empty,  attribute(  get_feature_by_id(@layer, $id -1),
'zona_fill2') , "zona")

and it seems to me the above expression populates the "zona_fill2" field in
the same way the "zona_fill1" was populated.

Best regards.

Andrea



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html


More information about the Qgis-user mailing list