<?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: script to load table if first friday of month, otherwise continue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/script-to-load-table-if-first-friday-of-month-otherwise-continue/m-p/498596#M689031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, that easy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was drowning in an inch of water, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just to point out, I think that by default the parameters set at the beginning of the script have the days written as Mon, Tue etc. and not mon, tue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for your script to work out, "fri" needs to be changed to "Fri" &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Nov 2013 11:35:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-27T11:35:33Z</dc:date>
    <item>
      <title>script to load table if first friday of month, otherwise continue</title>
      <link>https://community.qlik.com/t5/QlikView/script-to-load-table-if-first-friday-of-month-otherwise-continue/m-p/498593#M689028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dashboard which is reloaded daily, sourcing from many different datasets.&lt;/P&gt;&lt;P&gt;Especially one dataset is really massive and refreshed anyway just monthly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I am looking for ways to AVOID to reload this dataset, unless we are on the first friday of the month (when this dataset is refreshed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I just came to this point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13855513825794727" jivemacro_uid="_13855513825794727"&gt;
&lt;P&gt;if(Day(today()))&amp;lt;=7 then&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Demand:&lt;/P&gt;
&lt;P&gt;CrossTable(Month,Demand,3)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;purgechar(PROD,CHR(32)) as SKU,&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem I am having is that the script does not go any further afterwards.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So how can I have both the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- check if we are in the FIRST Friday of the month&lt;/P&gt;&lt;P&gt;- when we are not, skip the subsequent LOAD section, but still continue in processing the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the feeling I should be reaching what I want by using if then or if else, but I cannot really make something out of it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 11:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-to-load-table-if-first-friday-of-month-otherwise-continue/m-p/498593#M689028</guid>
      <dc:creator />
      <dc:date>2013-11-27T11:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: script to load table if first friday of month, otherwise continue</title>
      <link>https://community.qlik.com/t5/QlikView/script-to-load-table-if-first-friday-of-month-otherwise-continue/m-p/498594#M689029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if day(Today()) &amp;lt;= 7 and WeekDay(Today()) = 'fri' then&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Load your table&lt;/P&gt;&lt;P&gt;end if &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 11:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-to-load-table-if-first-friday-of-month-otherwise-continue/m-p/498594#M689029</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-27T11:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: script to load table if first friday of month, otherwise continue</title>
      <link>https://community.qlik.com/t5/QlikView/script-to-load-table-if-first-friday-of-month-otherwise-continue/m-p/498595#M689030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if day(Today()) &amp;lt;= 7 and WeekDay(Today()) = 'Fri'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 11:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-to-load-table-if-first-friday-of-month-otherwise-continue/m-p/498595#M689030</guid>
      <dc:creator />
      <dc:date>2013-11-27T11:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: script to load table if first friday of month, otherwise continue</title>
      <link>https://community.qlik.com/t5/QlikView/script-to-load-table-if-first-friday-of-month-otherwise-continue/m-p/498596#M689031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, that easy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was drowning in an inch of water, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just to point out, I think that by default the parameters set at the beginning of the script have the days written as Mon, Tue etc. and not mon, tue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for your script to work out, "fri" needs to be changed to "Fri" &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 11:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-to-load-table-if-first-friday-of-month-otherwise-continue/m-p/498596#M689031</guid>
      <dc:creator />
      <dc:date>2013-11-27T11:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: script to load table if first friday of month, otherwise continue</title>
      <link>https://community.qlik.com/t5/QlikView/script-to-load-table-if-first-friday-of-month-otherwise-continue/m-p/498597#M689032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my case, would be 'sex', because my QV is in Portuguese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 11:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-to-load-table-if-first-friday-of-month-otherwise-continue/m-p/498597#M689032</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-27T11:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: script to load table if first friday of month, otherwise continue</title>
      <link>https://community.qlik.com/t5/QlikView/script-to-load-table-if-first-friday-of-month-otherwise-continue/m-p/498598#M689033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually, I badly formulated my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By doing so, the data will not visible in the dashboard for the whole month, besides the first friday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed, what I would like to achieve is that the data is not reloaded throughout the month, as it is the same; but it is indeed kept and visible within the dashboard!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 11:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-to-load-table-if-first-friday-of-month-otherwise-continue/m-p/498598#M689033</guid>
      <dc:creator />
      <dc:date>2013-11-27T11:42:23Z</dc:date>
    </item>
  </channel>
</rss>

