<div dir="ltr"><div>Eddison, try this:</div><div><br></div>CASE<br>  WHEN ( "W_BRILLO"  = 3 AND "W_PPT" =1 AND "W_TEMP"=2) THEN 2<br>  WHEN ("W_BRILLO"  = 2 AND "W_PPT" =2 AND "W_TEMP"=3) THEN 2<br>  WHEN ("W_BRILLO"  = 1 AND "W_PPT" =2 AND "W_TEMP"=3) THEN 3<br>  ELSE 5<br>END<div><br></div><div>Note, however, that you don't have any of these combinations in your table, so you will get only null values. I put the "ELSE 5" there just so you know the code is working.</div><div><br></div><div>Also, bear in mind that the lines inside CASE and END must be indented by two spaces.<br></div><div><br></div><div>Cheers,<br clear="all"></div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><div><font size="2"><b>Renato<br></b></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 23 Aug 2018 at 18:05, Eddison Araya <<a href="mailto:eddisonjose@gmail.com">eddisonjose@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hello, greetings, a question:<br></div><div><br></div><div><img src="cid:ii_jl6hubci3" 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>
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>