<?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: Why column5 does not equal column3 using Peek()? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-column5-does-not-equal-column3-using-Peek/m-p/654981#M239271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies, I have corrected the column numbers. I am looking to pass value from either column3 or column4 to column5.&lt;/P&gt;&lt;P&gt;I see your point - I don't need to use Peek() at all.&lt;/P&gt;&lt;P&gt;Is it possible to peek to the same row without for loop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Oct 2014 11:21:45 GMT</pubDate>
    <dc:creator>martyn_birzys</dc:creator>
    <dc:date>2014-10-03T11:21:45Z</dc:date>
    <item>
      <title>Why column5 does not equal column3 using Peek()?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-column5-does-not-equal-column3-using-Peek/m-p/654979#M239269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to pass variable from either column3 or column4 to a column5 on the same row, depending on condition. But the result does not correspond the row.&lt;/P&gt;&lt;P&gt;I am aware that Peek() evaluates by load order - but dos it not stay on the same row in a line of script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&amp;nbsp; &lt;/P&gt;&lt;P&gt;Country, Continent, Heat, Rain&amp;nbsp; &lt;/P&gt;&lt;P&gt;Argentina, South America, Mild, Rainy&amp;nbsp; &lt;/P&gt;&lt;P&gt;Mexico, North America, Hot, Dry&amp;nbsp; &lt;/P&gt;&lt;P&gt;Sweden, North Europe, Cold, Snow&amp;nbsp; &lt;/P&gt;&lt;P&gt;Cyprus, South Europe, Hot, Humid ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table2:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;If(Left(Continent,5) like '*North*',Peek('Heat'),Peek('Rain')) as Climate&lt;/P&gt;&lt;P&gt;Resident table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 11:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-column5-does-not-equal-column3-using-Peek/m-p/654979#M239269</guid>
      <dc:creator>martyn_birzys</dc:creator>
      <dc:date>2014-10-03T11:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why column3 does not equal column1 using Peek()?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-column5-does-not-equal-column3-using-Peek/m-p/654980#M239270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, probably because column1 contains country names and column3 contains a temperature indication. And the peek function looks at the previous row of the target table. So, no it does not stay on the same row. That's why it's called in inter record function. Perhaps you want this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, If(Left(Continent,5) = 'North',Heat,Rain) as Climate&lt;/P&gt;&lt;P&gt;Resident table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 11:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-column5-does-not-equal-column3-using-Peek/m-p/654980#M239270</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-03T11:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why column5 does not equal column3 using Peek()?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-column5-does-not-equal-column3-using-Peek/m-p/654981#M239271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies, I have corrected the column numbers. I am looking to pass value from either column3 or column4 to column5.&lt;/P&gt;&lt;P&gt;I see your point - I don't need to use Peek() at all.&lt;/P&gt;&lt;P&gt;Is it possible to peek to the same row without for loop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 11:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-column5-does-not-equal-column3-using-Peek/m-p/654981#M239271</guid>
      <dc:creator>martyn_birzys</dc:creator>
      <dc:date>2014-10-03T11:21:45Z</dc:date>
    </item>
  </channel>
</rss>

