<?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 Loop using new variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-using-new-variables/m-p/812615#M286801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;I don't how to accomplish the following. I want to take a table like the one below a&lt;SPAN style="font-size: 10pt;"&gt;nd loop through to create multiple tables each utilizing a different where clause based on dates. the first where clause would be like below, then MonthYear &amp;gt;=201002, then MonthYear &amp;gt;=201003, and so on.&amp;nbsp; Somehow use a variable in where clause?Any ideas on a good method to accomplish this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;For i = 1 to 50&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;SalesbyRange:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Select *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;From Resident Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;where MonthYear &amp;gt;=201001;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 00:23:37 GMT</pubDate>
    <dc:creator>zagzebski</dc:creator>
    <dc:date>2015-01-05T00:23:37Z</dc:date>
    <item>
      <title>Loop using new variables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-using-new-variables/m-p/812615#M286801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;I don't how to accomplish the following. I want to take a table like the one below a&lt;SPAN style="font-size: 10pt;"&gt;nd loop through to create multiple tables each utilizing a different where clause based on dates. the first where clause would be like below, then MonthYear &amp;gt;=201002, then MonthYear &amp;gt;=201003, and so on.&amp;nbsp; Somehow use a variable in where clause?Any ideas on a good method to accomplish this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;For i = 1 to 50&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;SalesbyRange:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Select *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;From Resident Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;where MonthYear &amp;gt;=201001;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 00:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-using-new-variables/m-p/812615#M286801</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-01-05T00:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loop using new variables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-using-new-variables/m-p/812616#M286802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't know what you are trying to accomplish but your loop would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET _MyStart = 201000; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SalesbyRange:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FOR _i = 0 to 50;;&lt;/P&gt;&lt;P&gt;LOAD * Resident Sales WHERE MonthYear &amp;gt;= $(_MyStart)+$(_i);&lt;/P&gt;&lt;P&gt;NEXT _i;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 01:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-using-new-variables/m-p/812616#M286802</guid>
      <dc:creator />
      <dc:date>2015-01-05T01:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Loop using new variables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-using-new-variables/m-p/812617#M286803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mario. This is a good start for me to get this accomplished!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 14:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-using-new-variables/m-p/812617#M286803</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-01-05T14:58:52Z</dc:date>
    </item>
  </channel>
</rss>

