[GIS] Multiply whole column with the field calculator in QGIS

featuresfield-calculatorqgis

I have a layer with the field size. I did some mistake with the value and now I need the values multiplied by 16.

But instead of going through 500 lines and recalculating them I would like QGIS to do that.

So I tried to mark all features and then I hit the field calculator. Now I selected to take the values and chosen the size column. In the expression I had $Id * 16.

But the result was that I got:
0
16
36

instead of e.g.:
47
38
67

So how can I take a whole column with simple operations?

Best Answer

What about "size" * 16 in the field calculator expression?