<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi, <br><br></div>You can use the function "Colaesce", which returns the first not null value of a series.<br><br></div>For example, Coalesce( foo, bar, 3) will return<br></div>* 3 if foo and bar are NULL<br></div>* bar if foo is NULL and bar is not NULL<br></div>* foo if foor is NOT NULL<br><br></div>You can use this function with second argument as an empty string ( 2 consecutive single quotes, like '' ) like this<br><br></div>Coalesce( something, '') || Coalesce( otherfield, '') || Coalesce( thirdfield, '')<br><br></div>Regards<br></div>Michaël<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-20 9:54 GMT+02:00 Phil (The Geek) Wyatt <span dir="ltr"><<a href="mailto:phil@wyatt-family.com" target="_blank">phil@wyatt-family.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-AU"><div><p class="MsoNormal">Hi Folks,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am working with LIST Address Points data from <a href="http://listdata.thelist.tas.gov.au/opendata/" target="_blank">http://listdata.thelist.tas.gov.au/opendata/</a> (Specifically Clarence Municipality) and I need to concatenate into one field the full address of each location. I am struggling to figure out how to do it when there are fields for unit numbers, building names, numbers to and from etc. Many of the fields are also NULL so clearly I want those fields disregarded.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Can someone give me a quick heads up on how to NOT add the data from a field that has NULL?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Chances are I will be doing this regularly so I am keen to document the required expressions for others to use as well.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span>Cheers - Phil<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span>Volunteer Mapper - <a href="http://www.redcross.org.au/volunteering.aspx" target="_blank"><span style="color:windowtext;text-decoration:none">Red Cross</span></a><u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>