<div dir="ltr"><div>Hello Andres, it is at QGIS that I have tried to do things.</div><div><br></div><div>Thank you very much</div><div><br></div><div>Eddison</div></div><br><div class="gmail_quote"><div dir="ltr">El vie., 24 ago. 2018 a las 0:26, Andreas Neumann (<<a href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hi Edisson,</p>
<p>Not sure if you are really using QGIS? The screenshot you pasted
from the attribute table seems to be from another GIS (ESRI?).</p>
<p>Anyway - your CASE statement is wrong - no matter if it concerns
QGIS or ESRI, you cannot have several tests, separated by Kommas.
Either you have to combine the tests with AND/OR or you have to
use the IN/NOT IN statements, e.g. like</p>
<p>CASE<br>
WHEN val IN (1,3,5,7) THEN 'odd'<br>
WHEN val IN (2,4,6,8) THEN 'even'<br>
END</p>
<p>The syntax you used is invalid.</p>
<p>Hope this helps, no matter what GIS is concerned ;-)</p>
<p>Greetings,</p>
<p>Andreas<br>
</p>
<br>
<div class="m_-4985417899678313104moz-cite-prefix">Am 23.08.2018 um 22:04 schrieb Eddison
Araya:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<div>Hello, greetings, a question:<br>
</div>
<div><br>
</div>
<div><img src="cid:part1.43DF6EEB.76EC2AA3@carto.net" alt="image.png" width="279" height="139"><br>
</div>
<div><br>
</div>
<div>If I have that map: <b><a href="https://www.dropbox.com/s/6hvnrb37fvc00wl/ejemplo.zip?dl=0" target="_blank">https://www.dropbox.com/s/6hvnrb37fvc00wl/ejemplo.zip?dl=0</a> </b><br>
</div>
<div><br>
</div>
<div>
<div>E eu quero dizer:</div>
<div> Se W_BRILLO is equal to 3, se W_PPT is equal to 1,
se W_TEMP is equal to 2, have a value of 2</div>
<div><br>
</div>
<div>Se W_BRILLO is equal to 2, se W_PPT
is equal to 2, se W_TEMP
is equal to 3, have a value of 2</div>
<div><br>
</div>
<div>Se W_BRILLO is equal to 1, se W_PPT
is equal to 2, se W_TEMP
is equal to 3, have a value of 3</div>
</div>
<div><br>
</div>
<div>I put this:<br>
</div>
<div><br>
</div>
<div>
<div>CASE</div>
<div><br>
</div>
<div>WHEN "W_BRILLO" = '3', "W_PPT" ='1', "W_TEMP" = '2'
THEN 2
<div>WHEN "W_BRILLO" = '2', "W_PPT" ='2', "W_TEMP" = '3'
THEN 2 <br>
<div>WHEN W_BRILLOI = '1', "W_PPT" ='2', "W_TEMP" =
'3' THEN 3</div>
</div>
<div><br>
</div>
<div> END</div>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>But I get an error!</div>
<div><br>
</div>
<div>Thank you</div>
<div><br>
</div>
<div>Eddison</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_-4985417899678313104mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Qgis-user mailing list
<a class="m_-4985417899678313104moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>
List info: <a class="m_-4985417899678313104moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="m_-4985417899678313104moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
</blockquote>
<br>
</div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>