<?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, concatenate and exist function together in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/loop-concatenate-and-exist-function-together/m-p/511462#M690541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to use Exist function inside loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is when we do loop we cannot drop the table because i need to concatenate all things of loop together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want exit function should work on each and every table created in the loop separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at code below i cannot drop table hence exits function will not work for each table separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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_13808703403425358" jivemacro_uid="_13808703403425358"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;or j=2012 to 2012&lt;/P&gt;&lt;P&gt;for i=1 to 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customerloop:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ID as ID1,&lt;/P&gt;&lt;P&gt;EntryType,&lt;/P&gt;&lt;P&gt;INVOICEACCOUNT,&lt;/P&gt;&lt;P&gt;MonthName,&lt;/P&gt;&lt;P&gt;DATAAREAID1 as DATAAREAID,&lt;/P&gt;&lt;P&gt;MetricID&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;P&gt;where Year(MonthName)=$(j) and Month(MonthName)=$(i);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; 1 as ID1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 as EntryType,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4 as MetricID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(Date('01/$(i)/$(j)')) as MonthName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Upper(text(ID)) as DATAAREAID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp; NAME as Company&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;MasterCompanies;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;where not Exists(DATAAREAID,ID) and [ISVIRTUAL]=0 and ID&amp;lt;&amp;gt;'0000';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i;&lt;/P&gt;&lt;P&gt;NEXT j;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Oct 2013 07:06:25 GMT</pubDate>
    <dc:creator>harleen_singh</dc:creator>
    <dc:date>2013-10-04T07:06:25Z</dc:date>
    <item>
      <title>loop, concatenate and exist function together</title>
      <link>https://community.qlik.com/t5/QlikView/loop-concatenate-and-exist-function-together/m-p/511462#M690541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to use Exist function inside loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is when we do loop we cannot drop the table because i need to concatenate all things of loop together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want exit function should work on each and every table created in the loop separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at code below i cannot drop table hence exits function will not work for each table separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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_13808703403425358" jivemacro_uid="_13808703403425358"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;or j=2012 to 2012&lt;/P&gt;&lt;P&gt;for i=1 to 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customerloop:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ID as ID1,&lt;/P&gt;&lt;P&gt;EntryType,&lt;/P&gt;&lt;P&gt;INVOICEACCOUNT,&lt;/P&gt;&lt;P&gt;MonthName,&lt;/P&gt;&lt;P&gt;DATAAREAID1 as DATAAREAID,&lt;/P&gt;&lt;P&gt;MetricID&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;P&gt;where Year(MonthName)=$(j) and Month(MonthName)=$(i);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; 1 as ID1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 as EntryType,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4 as MetricID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(Date('01/$(i)/$(j)')) as MonthName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Upper(text(ID)) as DATAAREAID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp; NAME as Company&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;MasterCompanies;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;where not Exists(DATAAREAID,ID) and [ISVIRTUAL]=0 and ID&amp;lt;&amp;gt;'0000';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i;&lt;/P&gt;&lt;P&gt;NEXT j;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 07:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-concatenate-and-exist-function-together/m-p/511462#M690541</guid>
      <dc:creator>harleen_singh</dc:creator>
      <dc:date>2013-10-04T07:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: loop, concatenate and exist function together</title>
      <link>https://community.qlik.com/t5/QlikView/loop-concatenate-and-exist-function-together/m-p/511463#M690542</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;The function exists() seems correct ... but you cannot use DATAAREAID in it (because QV does not know it yet, because you used AS) =&amp;gt; you have to use upper(text(ID)) instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 07:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-concatenate-and-exist-function-together/m-p/511463#M690542</guid>
      <dc:creator />
      <dc:date>2013-10-04T07:41:34Z</dc:date>
    </item>
  </channel>
</rss>

