<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Not Exist between this date</title><link>https://community.appian.com/discussions/f/data/27816/not-exist-between-this-date</link><description>Hi everyone, Can appian do this query? I would like to query all of the data of the merchant without transaction between a specified date range and show it in the read-only grid, I already have view table but I can show all of the merchant without transaction</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Not Exist between this date</title><link>https://community.appian.com/thread/108874?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 10:10:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c4ea55bd-dfc0-42ef-a3bc-fd8bcff31c48</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I think this is not a good idea. You need to compare each item in DB against a list of 31 values! This cries for bad performance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not Exist between this date</title><link>https://community.appian.com/thread/108873?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 09:59:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ef00382-f95d-4478-a5bc-96b8cc4edb36</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;Hey Stefan, I achieved it through following code, Could you please check it &amp;amp; tell me whether it&amp;#39;s acceptable or not.(in place of today he can use his dates)&lt;/p&gt;
&lt;p&gt;a!queryLogicalExpression(&lt;br /&gt; operator: &amp;quot;AND&amp;quot;,&lt;br /&gt; filters: {&lt;br /&gt; &lt;br /&gt; a!queryFilter(&lt;br /&gt; field: &amp;quot;HolidayDate&amp;quot;,&lt;br /&gt; operator: &amp;quot;not in&amp;quot;,&lt;br /&gt; value: a!forEach(items: enumerate(1+tointeger(a!addDateTime(today(),&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,30,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;)-today())),&lt;br /&gt; expression: today()+fv!item)&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; ignoreFiltersWithEmptyValues: true&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not Exist between this date</title><link>https://community.appian.com/thread/108207?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 19:35:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:60ad0986-98db-4aec-af3a-ea1b3f9fc978</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;Appian a!queryFilter() supports &amp;quot;&lt;span&gt;BETWEEN&lt;/span&gt;&amp;quot; operator however it does not support something like NOT BETWEEN. To achieve the same you can refer to the code below.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!queryEntity(
  entity: cons!ENT_MERCHANT,
  query: a!query(
    logicalExpression: a!queryLogicalExpression(
      operator: &amp;quot;AND&amp;quot;,
      filters: {
        a!queryFilter(
          field: &amp;quot;transaction&amp;quot;,
          operator: &amp;quot;is null&amp;quot;
        ),
/* Option-1  To get the data BETWEEN two dates*/
        a!queryFilter(
          field: &amp;quot;transactionDate&amp;quot;,
          operator: &amp;quot;between&amp;quot;,
          value: {&amp;quot;01/01/2022&amp;quot;,&amp;quot;12/31/2022&amp;quot;}
        ),
/* Option-2  To get the data NOT BETWEEN two dates*/
        /*a!queryFilter(*/
          /*field: &amp;quot;transactionDate&amp;quot;,*/
          /*operator: &amp;quot;&amp;lt;&amp;quot;,*/
          /*value: &amp;lt;STARTDATE&amp;gt;*/
        /*),*/
        /*a!queryFilter(*/
          /*field: &amp;quot;transactionDate&amp;quot;,*/
          /*operator: &amp;quot;&amp;gt;&amp;quot;,*/
          /*value: &amp;lt;ENDATE&amp;gt;*/
        /*)*/
      },
      ignoreFiltersWithEmptyValues: true
    ),
    pagingInfo: a!pagingInfo(
      startIndex: 1,
      batchSize: -1
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not Exist between this date</title><link>https://community.appian.com/thread/108201?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 18:23:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84ffc88a-8b2a-45cf-9492-d7ef948e7a9c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;To query record IN a specific range, you do something like &amp;quot;datefield &amp;gt;= START&amp;nbsp;AND&amp;nbsp;datefield&amp;nbsp;&amp;lt;= END&amp;quot;. The opposite would be &lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;datefield &amp;lt;= START&lt;/span&gt;&lt;span&gt;&amp;nbsp;AND&amp;nbsp;&lt;/span&gt;&lt;span&gt;datefield&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;gt;= END&amp;quot;&lt;/span&gt;. I think it is not the question whether Appian can do this query ....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not Exist between this date</title><link>https://community.appian.com/thread/108200?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 16:31:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:369fef6d-56b1-4fa1-81f2-601f1def90b1</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;can you share you CDT/Record structure(s)?&lt;br /&gt;I think we need to see more input. in general filtering for dates is not an issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>