<?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 Issue in getting the column value in the For loop using the Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-in-getting-the-column-value-in-the-For-loop-using-the/m-p/1268508#M399260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying fetch value in NewC in similar way like NewB in the RANGE table but is always blank. Not sure what could the reason. Am I missing something very silly here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it because i am using the square[] bracket here? Please suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;BR /&gt;Load A,B,[C C]&lt;BR /&gt;FROM Source;&lt;/P&gt;&lt;P&gt;Let vNoRows = NoOfRows('Temp');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i=0 to $(vNoRows)&lt;/P&gt;&lt;P&gt;Let vA=peek('A',$(i),'Temp');&lt;BR /&gt; let vB= peek('B',$(i),'Temp'); &lt;BR /&gt; let vC= peek('[C C]',$(i),'Temp');&lt;/P&gt;&lt;P&gt;RANGE:&lt;BR /&gt; load distinct&lt;BR /&gt;&amp;nbsp; PERIOD as Dates,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vB)' as NewB,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vC)' as NewC&lt;BR /&gt; resident FACT_ALL_PERIOD&lt;BR /&gt; WHERE f_PERIOD &amp;lt;='$(vDateLessthan)'&lt;BR /&gt; ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; concatenate(_RANGE)&lt;BR /&gt;&amp;nbsp; load distinct&lt;BR /&gt;&amp;nbsp;&amp;nbsp; BUSINESS_DATE AS Dates,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; '$(vB)' as NewB,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vC)' as NewC&lt;BR /&gt;&amp;nbsp; FROM [..\..\..\QVD\EMP\EMP.qvd](qvd)&lt;BR /&gt;&amp;nbsp; where TRIM(Date(DATE,'MM/DD/YYYY')) &amp;lt;='$(vDateLessthan)'&lt;BR /&gt;&amp;nbsp; and TRIM(B) = '$(vB)'&lt;BR /&gt;&amp;nbsp; ;&lt;BR /&gt; //END IF;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;drop table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2016 17:30:15 GMT</pubDate>
    <dc:creator>qlikviewforum</dc:creator>
    <dc:date>2016-11-17T17:30:15Z</dc:date>
    <item>
      <title>Issue in getting the column value in the For loop using the Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-getting-the-column-value-in-the-For-loop-using-the/m-p/1268508#M399260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying fetch value in NewC in similar way like NewB in the RANGE table but is always blank. Not sure what could the reason. Am I missing something very silly here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it because i am using the square[] bracket here? Please suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;BR /&gt;Load A,B,[C C]&lt;BR /&gt;FROM Source;&lt;/P&gt;&lt;P&gt;Let vNoRows = NoOfRows('Temp');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i=0 to $(vNoRows)&lt;/P&gt;&lt;P&gt;Let vA=peek('A',$(i),'Temp');&lt;BR /&gt; let vB= peek('B',$(i),'Temp'); &lt;BR /&gt; let vC= peek('[C C]',$(i),'Temp');&lt;/P&gt;&lt;P&gt;RANGE:&lt;BR /&gt; load distinct&lt;BR /&gt;&amp;nbsp; PERIOD as Dates,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vB)' as NewB,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vC)' as NewC&lt;BR /&gt; resident FACT_ALL_PERIOD&lt;BR /&gt; WHERE f_PERIOD &amp;lt;='$(vDateLessthan)'&lt;BR /&gt; ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; concatenate(_RANGE)&lt;BR /&gt;&amp;nbsp; load distinct&lt;BR /&gt;&amp;nbsp;&amp;nbsp; BUSINESS_DATE AS Dates,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; '$(vB)' as NewB,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vC)' as NewC&lt;BR /&gt;&amp;nbsp; FROM [..\..\..\QVD\EMP\EMP.qvd](qvd)&lt;BR /&gt;&amp;nbsp; where TRIM(Date(DATE,'MM/DD/YYYY')) &amp;lt;='$(vDateLessthan)'&lt;BR /&gt;&amp;nbsp; and TRIM(B) = '$(vB)'&lt;BR /&gt;&amp;nbsp; ;&lt;BR /&gt; //END IF;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;drop table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 17:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-getting-the-column-value-in-the-For-loop-using-the/m-p/1268508#M399260</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2016-11-17T17:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in getting the column value in the For loop using the Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-getting-the-column-value-in-the-For-loop-using-the/m-p/1268509#M399261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove the &lt;STRONG&gt;[ ]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load 'a' as A, 'b' as B, 'c' as [C C] AutoGenerate 1;&lt;/P&gt;&lt;P&gt;Load 'aa' as A, 'bb' as B, 'cc' as [C C] AutoGenerate 1;&lt;/P&gt;&lt;P&gt;Load 'aaa' as A, 'bbb' as B, 'ccc' as [C C] AutoGenerate 1;&lt;/P&gt;&lt;P&gt;Let vNoRows = NoOfRows('Temp');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i=0 to $(vNoRows)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vA=peek('A',$(i),'Temp');&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vB= peek('B',$(i),'Temp');&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #ff0000;"&gt;let vC= peek('C C',$(i),'Temp');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; trace $(vA) $(vB) $(vC);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 18:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-getting-the-column-value-in-the-For-loop-using-the/m-p/1268509#M399261</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-11-17T18:10:39Z</dc:date>
    </item>
  </channel>
</rss>

