<?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: For loop for Quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/For-loop-for-Quarter/m-p/82193#M608550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this can be useful for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/78869"&gt;for loop in qlikview with dates&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2018 15:22:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-09T15:22:16Z</dc:date>
    <item>
      <title>For loop for Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/For-loop-for-Quarter/m-p/82191#M608548</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 style="font-family: Calibri; font-size: 11pt;"&gt;I'm extracting a large amount of data from a SQL server database. There's a limit on the amount of data that can be pulled per query, so I need to query data quarter by quarter. I'm wondering if there's a for loop function in Qlikview load script that can automate this. So, I'm thinking something like. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;For all quarters in current year and last two years&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Data:&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Load *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;SQL select *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;From my table&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Where mytable.quarter = quarter;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Concatenate&amp;nbsp; (Although there are several select queries , I would like to have data loaded in the same table in qlikview)&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Next quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Is it possible or any other suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Yvonne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 14:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-loop-for-Quarter/m-p/82191#M608548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-09T14:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: For loop for Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/For-loop-for-Quarter/m-p/82192#M608549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your table contains identifiable quarters, dsignated with for example a string like Q1, Q2, Q3 and Q4 (or anything else you can enumerate), the na FOR EACH loop like this will do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FOR EACH vQuarter IN 'Q1', 'Q2', Q3', 'Q4'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; LOAD ... ; // Not needed when no field modifications&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; SQL SELECT * FROM mytable WHERE mytable.quarter = '$(vQuarter)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NEXT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView will perform an AUTOCONCATENATE as soon as it detects similar loads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 15:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-loop-for-Quarter/m-p/82192#M608549</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-09T15:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: For loop for Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/For-loop-for-Quarter/m-p/82193#M608550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this can be useful for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/78869"&gt;for loop in qlikview with dates&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 15:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-loop-for-Quarter/m-p/82193#M608550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-09T15:22:16Z</dc:date>
    </item>
  </channel>
</rss>

