<?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 Where statement in script for exact days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-statement-in-script-for-exact-days/m-p/964120#M952846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my script I need a where statement where my date is only chosen if the day ('DD') is either 28, 29, 30, or 31.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My date format is DD MM YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I write that in a where statement in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2015 12:56:14 GMT</pubDate>
    <dc:creator>stjernvd</dc:creator>
    <dc:date>2015-11-23T12:56:14Z</dc:date>
    <item>
      <title>Where statement in script for exact days</title>
      <link>https://community.qlik.com/t5/QlikView/Where-statement-in-script-for-exact-days/m-p/964120#M952846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my script I need a where statement where my date is only chosen if the day ('DD') is either 28, 29, 30, or 31.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My date format is DD MM YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I write that in a where statement in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 12:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-statement-in-script-for-exact-days/m-p/964120#M952846</guid>
      <dc:creator>stjernvd</dc:creator>
      <dc:date>2015-11-23T12:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement in script for exact days</title>
      <link>https://community.qlik.com/t5/QlikView/Where-statement-in-script-for-exact-days/m-p/964121#M952847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Match(Day(Date#(tradedate, 'DD MM YYYY')), 28, 29, 30, 31);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Match(Left(tradedate, 2), 28, 29, 30, 31);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 12:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-statement-in-script-for-exact-days/m-p/964121#M952847</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-23T12:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement in script for exact days</title>
      <link>https://community.qlik.com/t5/QlikView/Where-statement-in-script-for-exact-days/m-p/964122#M952848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHERE Match(Day(date#(tradedate, 'DD MM YYYY')), 28, 29, 30, 31);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or even better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE Day(date#(tradedate&lt;SPAN style="font-size: 13.3333px;"&gt;, 'DD MM YYYY')&lt;/SPAN&gt;) &amp;gt;= 28;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Edit] OK, took care of the non-standard format. If your DATEFORMAT string is 'DD MM YYYY' you can omit the date#() calls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 12:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-statement-in-script-for-exact-days/m-p/964122#M952848</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-11-23T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement in script for exact days</title>
      <link>https://community.qlik.com/t5/QlikView/Where-statement-in-script-for-exact-days/m-p/964123#M952849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stjernvd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the following where clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Day(trade_date) = 28&lt;/P&gt;&lt;P&gt;or Day(trade_date) = 29&lt;/P&gt;&lt;P&gt;or Day(trade_date) = 30&lt;/P&gt;&lt;P&gt;or Day(trade_date) = 31;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-statement-in-script-for-exact-days/m-p/964123#M952849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-23T13:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement in script for exact days</title>
      <link>https://community.qlik.com/t5/QlikView/Where-statement-in-script-for-exact-days/m-p/964124#M952850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 29px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Just modified Sunny's solution.&lt;/P&gt;&lt;P style="font-size: 29px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 29px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SET vDate = '28','29','30','31':&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 29px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 29px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Test:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 29px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 29px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;From&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 29px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Your Path.. where Match(Day(Date#(tradedate,'DD MM YYYY')), $(vDate));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-statement-in-script-for-exact-days/m-p/964124#M952850</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-11-23T13:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement in script for exact days</title>
      <link>https://community.qlik.com/t5/QlikView/Where-statement-in-script-for-exact-days/m-p/964125#M952851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunny's approach will give you the right answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 15:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-statement-in-script-for-exact-days/m-p/964125#M952851</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-23T15:18:49Z</dc:date>
    </item>
  </channel>
</rss>

