<?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 Re: selection &amp;quot;date&amp;quot; between in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/selection-quot-date-quot-between/m-p/1837309#M1214997</link>
    <description>&lt;P&gt;maybe something like&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=If(Match([SalesRepException],'I22','I23') AND SurgeryDate &amp;gt;= vStartDate AND SurgeryDate &amp;lt;= AddYears(vStartDate,1), yourtrueexpression, yourfalseexpression)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;hope this helps&lt;BR /&gt;regards&lt;BR /&gt;Marco&lt;/P&gt;</description>
    <pubDate>Sat, 18 Sep 2021 20:53:43 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2021-09-18T20:53:43Z</dc:date>
    <item>
      <title>selection "date" between</title>
      <link>https://community.qlik.com/t5/QlikView/selection-quot-date-quot-between/m-p/1837063#M1214971</link>
      <description>&lt;P&gt;Hi, i'm getting trouble in defining this set.&lt;/P&gt;&lt;P&gt;I would like to set as condition that Surgery Date is between vStartDate (variable) and vStartDate + 1 year.&lt;/P&gt;&lt;P&gt;How this can be done ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikviewaf_0-1631887907977.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62198iDED9279C28538701/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qlikviewaf_0-1631887907977.png" alt="qlikviewaf_0-1631887907977.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 14:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selection-quot-date-quot-between/m-p/1837063#M1214971</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2021-09-17T14:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: selection "date" between</title>
      <link>https://community.qlik.com/t5/QlikView/selection-quot-date-quot-between/m-p/1837071#M1214973</link>
      <description>&lt;P&gt;I TRIED AS FOLLOW&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(Match([SalesRepException],'I22') AND SurgeryDate&amp;gt;=($(vStartI22)) AND SurgeryDate&amp;lt;=($(vStartI22)+365),'30% PLAN',&lt;BR /&gt;if(Match([SalesRepException],'I23') AND SurgeryDate&amp;gt;=($(vStartI23)) AND SurgeryDate&amp;lt;=($(vStartI23)+365),'30% PLAN',&lt;/P&gt;&lt;P&gt;if(Match(SalesRep,'HORIZON'),Territory_Description,if(Match(ShipTo,'123776'),'MATERDOMINI',&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(isnull([Percentage]),if(isnull(PercentageProductLine), ' ', Product_Line_Description),Territory_Description)))&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;COULD IT MAKE SENSE ?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 14:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selection-quot-date-quot-between/m-p/1837071#M1214973</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2021-09-17T14:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: selection "date" between</title>
      <link>https://community.qlik.com/t5/QlikView/selection-quot-date-quot-between/m-p/1837309#M1214997</link>
      <description>&lt;P&gt;maybe something like&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=If(Match([SalesRepException],'I22','I23') AND SurgeryDate &amp;gt;= vStartDate AND SurgeryDate &amp;lt;= AddYears(vStartDate,1), yourtrueexpression, yourfalseexpression)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;hope this helps&lt;BR /&gt;regards&lt;BR /&gt;Marco&lt;/P&gt;</description>
      <pubDate>Sat, 18 Sep 2021 20:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selection-quot-date-quot-between/m-p/1837309#M1214997</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2021-09-18T20:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: selection "date" between</title>
      <link>https://community.qlik.com/t5/QlikView/selection-quot-date-quot-between/m-p/1837312#M1214999</link>
      <description>&lt;P&gt;As&amp;nbsp; you&amp;nbsp; noticed,&amp;nbsp; BETWEEN&amp;nbsp; is not in the Qlik syntax. You could do a "less than" and a "larger than" comparison to solve it.&lt;/P&gt;&lt;P&gt;SurgeryDate &amp;gt;= '$(vStartDate)' AND SurgeryDate &amp;lt;= addyears('$(vStartDate)')&lt;/P&gt;&lt;P&gt;How does your if statement look like? is it an measure&amp;nbsp; like IF(&amp;lt;logic&amp;gt;, &amp;lt;statement&amp;gt;) with no else statement? ifIf so, then you could consider if it is better to create an SET statement instead of using an IF.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Sep 2021 21:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selection-quot-date-quot-between/m-p/1837312#M1214999</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-09-18T21:43:05Z</dc:date>
    </item>
  </channel>
</rss>

