<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Filter widget - trying to use both AND and OR operators in one filter in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-widget-trying-to-use-both-and-and-or/m-p/1255194#M22795</link>
    <description>&lt;P&gt;I have a layer of assets.&amp;nbsp; I want to be able to filter by the status of the asset and it's due date, OR between a user-selected date range.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I want it to automatically show all assets that aren't complete and were due before today, and ALSO all assets with a due date between a user selected date range.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, this sql query:&lt;/P&gt;&lt;P&gt;(IsComplete = "N" AND DueDate &amp;lt; today) OR DueDate is between date1 and date2&lt;/P&gt;&lt;P&gt;I can't seem to make this work.&amp;nbsp; When I create a set with the first (set to match all expressions) and then add the last date expression, it gives everything the AND operator.&amp;nbsp; It seems that everything must be one or the other, i can't mix and match operators.&amp;nbsp; Is there any way to make this work?&lt;/P&gt;</description>
    <pubDate>Sun, 05 Feb 2023 22:46:12 GMT</pubDate>
    <dc:creator>KarenEllett</dc:creator>
    <dc:date>2023-02-05T22:46:12Z</dc:date>
    <item>
      <title>Filter widget - trying to use both AND and OR operators in one filter</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-widget-trying-to-use-both-and-and-or/m-p/1255194#M22795</link>
      <description>&lt;P&gt;I have a layer of assets.&amp;nbsp; I want to be able to filter by the status of the asset and it's due date, OR between a user-selected date range.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I want it to automatically show all assets that aren't complete and were due before today, and ALSO all assets with a due date between a user selected date range.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, this sql query:&lt;/P&gt;&lt;P&gt;(IsComplete = "N" AND DueDate &amp;lt; today) OR DueDate is between date1 and date2&lt;/P&gt;&lt;P&gt;I can't seem to make this work.&amp;nbsp; When I create a set with the first (set to match all expressions) and then add the last date expression, it gives everything the AND operator.&amp;nbsp; It seems that everything must be one or the other, i can't mix and match operators.&amp;nbsp; Is there any way to make this work?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 22:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/filter-widget-trying-to-use-both-and-and-or/m-p/1255194#M22795</guid>
      <dc:creator>KarenEllett</dc:creator>
      <dc:date>2023-02-05T22:46:12Z</dc:date>
    </item>
  </channel>
</rss>

