<div dir="auto"><div dir="auto">Michael and list</div><div dir="auto"><br></div><br><br><div class="gmail_quote gmail_quote_container" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, Aug 26, 2025, 07:54 Reetz, Michael (NLPVW) via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="m_-776803879893044476WordSection1">
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">Hello group,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Tahoma",sans-serif">I’ve added a WFS-layer to a project try to define filters on different attributes. It seems not to be possible to filter for NULL values.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Tahoma",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Tahoma",sans-serif">Example:<u></u><u></u></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="m_-776803879893044476MsoListParagraph" style="margin-left:0cm"><span lang="EN-GB" style="font-family:"Tahoma",sans-serif">1932 records in total<u></u><u></u></span></li><li class="m_-776803879893044476MsoListParagraph" style="margin-left:0cm"><span lang="EN-GB" style="font-family:"Tahoma",sans-serif">376 records with a value in a date attribute<u></u><u></u></span></li><li class="m_-776803879893044476MsoListParagraph" style="margin-left:0cm"><span lang="EN-GB" style="font-family:"Tahoma",sans-serif">20 records with 2005-12-31 as value<u></u><u></u></span></li></ul>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Tahoma",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Tahoma",sans-serif">If I set the filter to "end_date" = '2005-12-31' the result is 20 records.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Tahoma",sans-serif">If I set the filter to "end_date" != '2005-12-31' the result is 356 records. So only records that have an end date are recognized. Record with NULL as end date are ignored.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Tahoma",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Tahoma",sans-serif">Filtering in the attribute table with “is_empty_or_null” works but only for selection.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Tahoma",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Tahoma",sans-serif">Is this “normal” behaviour with WFS layers or is there a way to define a filter string that work for all records?</span></p></div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">Have you tried</div><div dir="auto"><br></div><div dir="auto">end_date IS NULL</div><div dir="auto"><br></div><div dir="auto">Generally speaking (I'm not sure about this specific case) null is neither equal nor unequal hence the need for a different logical operator, IS.</div><div dir="auto"><br></div><div dir="auto">Can you combine conditions for example</div><div dir="auto"><br></div><div dir="auto">end_date IS NULL or end_date = '2005-12-31'</div><div dir="auto"><br></div><div class="gmail_quote gmail_quote_container" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div>