<?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: multiple date selection in qlikview script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052898#M642528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to provide more information about where you are loading from. Are you loading from a csv, excel file, database etc. What is the name of the data field, or are the files date stamped, etc, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without that information, any answer that I give you can never be better than a guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jan 2016 07:09:08 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-01-22T07:09:08Z</dc:date>
    <item>
      <title>multiple date selection in qlikview script</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052897#M642527</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 our current project i have to build one scenerio in qlikview script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When&amp;nbsp; our&amp;nbsp; loading date = today() than i have to pull the&amp;nbsp; data for arrival date from today() to last 3 days like today()-1,today()-2,today()-3,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and want to set a flag for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 06:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052897#M642527</guid>
      <dc:creator>qliklearnervir</dc:creator>
      <dc:date>2016-01-22T06:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: multiple date selection in qlikview script</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052898#M642528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to provide more information about where you are loading from. Are you loading from a csv, excel file, database etc. What is the name of the data field, or are the files date stamped, etc, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without that information, any answer that I give you can never be better than a guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 07:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052898#M642528</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-01-22T07:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: multiple date selection in qlikview script</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052899#M642529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;If I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;understand you correctly&lt;/SPAN&gt;&lt;/SPAN&gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;You need to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;create a variable&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in the script &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;vLoadingDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() - 3; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;After,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;when loading data from&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;&amp;nbsp; data source&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;if the table&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;has a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;date&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;field&lt;/SPAN&gt;, you can &lt;SPAN class="hps"&gt;add a new field, &lt;/SPAN&gt;like "flagLastThreeDays "&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;IF&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vLoadingDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; , 'X',' ') as flagLastThreeDays &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;It is better&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;if you&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;posted&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;an sample &lt;/SPAN&gt;in &lt;SPAN class="hps"&gt;qvw format&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 07:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052899#M642529</guid>
      <dc:creator>asgardd2</dc:creator>
      <dc:date>2016-01-22T07:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: multiple date selection in qlikview script</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052900#M642530</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;Previously i have loaded the code accordingly :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;Arrive_date,&lt;/P&gt;&lt;P&gt;book_date,&lt;/P&gt;&lt;P&gt;departure_date,&lt;/P&gt;&lt;P&gt;if(departure_date=today(),1,0) as flag_today,&lt;/P&gt;&lt;P&gt;if(departure_date=date(today()-11,'DD/MM/YYYY'),1,0) as flag_remind&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resident guest;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now as per current scenerio i have to change my loading mechanism as per below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1)&amp;nbsp; if departure_date =today() and weekday=Monday THEN&amp;nbsp; i have to ick last 3 days data like today()-1,today()-2,TOday()-3..............for other days i have to pick one day older data like today()-1........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&amp;nbsp; have to maintain the flag also.....................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 07:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052900#M642530</guid>
      <dc:creator>qliklearnervir</dc:creator>
      <dc:date>2016-01-22T07:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: multiple date selection in qlikview script</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052901#M642531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Previously i have loaded the code accordingly :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;ID,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Arrive_date,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;book_date,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;departure_date,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;if(departure_date=today(),1,0) as flag_today,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;if(departure_date=date(today()-11,'DD/MM/YYYY'),1,0) as flag_remind&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;resident guest;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Now as per current scenerio i have to change my loading mechanism as per below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;(1)&amp;nbsp; if departure_date =today() and weekday=Monday THEN&amp;nbsp; i have to ick last 3 days data like today()-1,today()-2,TOday()-3..............for other days i have to pick one day older data like today()-1........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;and&amp;nbsp; have to maintain the flag also.....................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 07:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052901#M642531</guid>
      <dc:creator>qliklearnervir</dc:creator>
      <dc:date>2016-01-22T07:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: multiple date selection in qlikview script</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052902#M642532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14534484405866113" jivemacro_uid="_14534484405866113"&gt;
&lt;P&gt;LET vDate = num(today())-3;&lt;/P&gt;
&lt;P&gt;if WeekDay(Today())='Mon' then &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Load Fields from Source.qvd (qvd) where YourDateField &amp;gt; $(vDate);&lt;/P&gt;
&lt;P&gt;ELSE&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Load Fields from Source.qvd (qvd) where YourDateField &amp;gt; Today()-1;&lt;/P&gt;
&lt;P&gt;ENDIF&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 07:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052902#M642532</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-01-22T07:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: multiple date selection in qlikview script</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052903#M642533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the variables :&lt;/P&gt;&lt;P&gt;1) For Today() -&amp;nbsp;&amp;nbsp;&amp;nbsp; vToday=Today()&lt;/P&gt;&lt;P&gt;2) For last 3 days - vLast3= Today()-3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to go document properties---&amp;gt; select trigger----&amp;gt; in first box (Document Event Triggers) select OnOpen---&amp;gt;Click on Add action--&amp;gt;click on Add ---&amp;gt; select External---&amp;gt;set variable--ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Put the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Arrive_date in variable without Equal to sign(=) and put the variable &lt;SPAN style="font-size: 13.3333px;"&gt;vLast3 in value. then --&amp;gt;ok&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this willl help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mahamed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 07:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-date-selection-in-qlikview-script/m-p/1052903#M642533</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2016-01-22T07:42:31Z</dc:date>
    </item>
  </channel>
</rss>

