<div dir="ltr"><div class="gmail_default" style><p style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(51,51,51);line-height:18px"><span style="background-color:rgb(255,255,255)">Hi.</span></p><p style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(51,51,51);line-height:18px"><span style="background-color:rgb(255,255,255)">I'm spanish user, sorry for my English. I'm using Google translator.</span></p><p style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(51,51,51);line-height:18px"><span style="background-color:rgb(255,255,255)">I have a .shp points file with attribute table. Like this...</span></p><pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;word-wrap:normal"><code style="color:rgb(34,34,34);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;line-height:18px;margin:0px;padding:0px;border:0px;vertical-align:baseline;white-space:inherit;background-color:rgb(255,255,255)">-- 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

...............................
...............................</code><code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;line-height:18px;background-color:rgb(255,255,255)"><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif">
</font></code></pre><pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;word-wrap:normal"><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif"><span style="line-height:18px">I have 50 different valuesv of A field.<br></span></font></pre><p style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;clear:both;color:rgb(51,51,51);line-height:18px"><span style="background-color:rgb(255,255,255)">And now, I want a new field, "D" (Data type, double) like this in field calculator:</span></p><pre style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:12px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;word-wrap:normal;color:rgb(51,51,51);line-height:18px"><code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;color:rgb(34,34,34);white-space:inherit">WHEN "A"='30STH400500' THEN <i><b>D = 30 + 20 + 10 = 50</b></i></code></pre><pre style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:12px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;word-wrap:normal;color:rgb(51,51,51);line-height:18px">I don't know if I have explained it.</pre><pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;word-wrap:normal"><pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;word-wrap:normal"><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif"><span style="line-height:18px">I've tried using CASE WHEN A..... THEN .... ELSE but I don't get it.<br></span></font></pre><pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;word-wrap:normal">I think that with plugin Fieldpyculator, but I don't know python</pre><pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;word-wrap:normal">Please, help me. </pre><pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;word-wrap:normal">Thanks.</pre><pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;word-wrap:normal"><br></pre></pre><pre style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:12px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;word-wrap:normal;color:rgb(51,51,51);line-height:18px"><br></pre></div></div>