[Qgis-user] CASE WHEN .... Field Calculator.
MatÃas Taborda Barroso
taborda.barroso at gmail.com
Tue Nov 4 11:29:06 PST 2014
Hi.
I'm spanish user, sorry for my English. I'm using Google translator.
I have a .shp points file with attribute table. Like this...
-- A -- -- B -- -- C --
QString Double Double Data type
30STH400500 1 30
30STH400500 1 30
30STH400500 1 30
30STH400500 1 30
........... ... ...
........... ... ...
30STH400500 2 10
30STH400500 2 10
30STH400500 2 10
30STH400500 2 10
........... ... ....
........... ... ....
30STH400500 3 20
30STH400500 3 20
30STH400500 3 20
30STH400500 3 20
........... ... ....
........... ... ....
30STH450450 1 10
...............................
...............................
I have 50 different valuesv of A field.
And now, I want a new field, "D" (Data type, double) like this in field
calculator:
WHEN "A"='30STH400500' THEN *D = 30 + 20 + 10 = 50*
I don't know if I have explained it.
I've tried using CASE WHEN A..... THEN .... ELSE but I don't get it.
I think that with plugin Fieldpyculator, but I don't know python
Please, help me.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20141104/55456d0a/attachment.html>
More information about the Qgis-user
mailing list