<?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: Switch Satement in EditScript in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Switch-Satement-in-EditScript/m-p/856425#M659459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write the If statement on the same line as Switch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #008000;"&gt;SWITCH&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #008000;"&gt;IF(WEEKEND(DATE(QVDCREATETIME('C:\Users\ABC\Lastweekque.qvd'))) = DATE(WEEKEND(TODAY())),1,2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2015 05:32:52 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2015-04-06T05:32:52Z</dc:date>
    <item>
      <title>Switch Satement in EditScript</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-Satement-in-EditScript/m-p/856422#M659456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to execute the load and store statement only if the day is Sunday. If it is Sunday and if the table is already stored then it should not run. Can somebody help me with my code. What is wrong in my Switch Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;SWITCH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;IF(WEEKEND(DATE(QVDCREATETIME('C:\Users\ABC\Lastweekque.qvd'))) = DATE(WEEKEND(TODAY())),1,2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;CASE 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;TRACE('LAST WEEK QUE QVD IS ALREADY UPDATED');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;CASE 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;Currweekque:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;LOAD*FROM Lastweekque.qvd(qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;WHERE Uni_ReloadWeek &amp;gt; DATE(WEEKEND(TODAY())-21);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;CONCATENATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;WEEKEND(TODAY()) AS Uni_ReloadWeek,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;wa_Include_Roots AS Uni_Include_Roots,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;RecID AS Uni_RecID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;FROM RAITS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;STORE Currweekque INTO Lastweekque.QVD(QVD);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;ENDSWITCH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="IMG_0575 (1).JPG" class="jive-image image-1" src="/legacyfs/online/82890_IMG_0575 (1).JPG" style="height: 465px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Apr 2015 22:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-Satement-in-EditScript/m-p/856422#M659456</guid>
      <dc:creator />
      <dc:date>2015-04-05T22:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Switch Satement in EditScript</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-Satement-in-EditScript/m-p/856423#M659457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Apr 2015 23:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-Satement-in-EditScript/m-p/856423#M659457</guid>
      <dc:creator />
      <dc:date>2015-04-05T23:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Switch Satement in EditScript</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-Satement-in-EditScript/m-p/856424#M659458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;----&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 02:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-Satement-in-EditScript/m-p/856424#M659458</guid>
      <dc:creator />
      <dc:date>2015-04-06T02:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Switch Satement in EditScript</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-Satement-in-EditScript/m-p/856425#M659459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write the If statement on the same line as Switch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #008000;"&gt;SWITCH&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #008000;"&gt;IF(WEEKEND(DATE(QVDCREATETIME('C:\Users\ABC\Lastweekque.qvd'))) = DATE(WEEKEND(TODAY())),1,2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 05:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-Satement-in-EditScript/m-p/856425#M659459</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-06T05:32:52Z</dc:date>
    </item>
  </channel>
</rss>

