<?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: Get Record value of same row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Record-value-of-same-row/m-p/414714#M154258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are both values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a simplified example. The calculations are a lot more complex than displayed here, so it is difficult to bring the full calculation in each time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1+2 AS Field1,&lt;/P&gt;&lt;P&gt;2+2 AS Field2,&lt;/P&gt;&lt;P&gt;IF(Field1 &amp;lt; Field2, 'xxx', 'yyy') AS NewField;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then it sais &lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;Field1&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 10:51:43 GMT</pubDate>
    <dc:creator>hschultz</dc:creator>
    <dc:date>2012-11-08T10:51:43Z</dc:date>
    <item>
      <title>Get Record value of same row</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Record-value-of-same-row/m-p/414712#M154256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having some inter-record difficulty on my LOAD script.&lt;/P&gt;&lt;P&gt;What i want to do to get values on the same line i am busy loading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried Peek, but that only uses above. I have also tried FieldValue(xxx,1) but that just gives me a null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically i'm looking for something simple like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(record1 &amp;lt; record2, 'xxx', 'yyy')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But at least if i understand what function to use i can build on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help as i am really stumped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Record-value-of-same-row/m-p/414712#M154256</guid>
      <dc:creator>hschultz</dc:creator>
      <dc:date>2012-11-08T10:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get Record value of same row</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Record-value-of-same-row/m-p/414713#M154257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to compare two fields of the same record then use something like: if(FieldA &amp;lt; FieldB, 'xxx', 'yyy') as FieldC. Make sure that FieldA and FieldB are of datatypes that can be compared that way. Is that what you're trying to do or do you want to compare fields of different records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Record-value-of-same-row/m-p/414713#M154257</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-08T10:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get Record value of same row</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Record-value-of-same-row/m-p/414714#M154258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are both values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a simplified example. The calculations are a lot more complex than displayed here, so it is difficult to bring the full calculation in each time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1+2 AS Field1,&lt;/P&gt;&lt;P&gt;2+2 AS Field2,&lt;/P&gt;&lt;P&gt;IF(Field1 &amp;lt; Field2, 'xxx', 'yyy') AS NewField;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then it sais &lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;Field1&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Record-value-of-same-row/m-p/414714#M154258</guid>
      <dc:creator>hschultz</dc:creator>
      <dc:date>2012-11-08T10:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get Record value of same row</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Record-value-of-same-row/m-p/414715#M154259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, you can't reference 'new' names created with AS NewName. You'll have to use the original fieldname (or expression). You can use a preceding load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *, if(fieldA &amp;lt; fieldB, 'xx','yy') as fieldC;&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;1+2 as fieldA,&lt;/P&gt;&lt;P&gt;2+2 as fieldB&lt;/P&gt;&lt;P&gt;from ....;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Record-value-of-same-row/m-p/414715#M154259</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-08T10:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get Record value of same row</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Record-value-of-same-row/m-p/414716#M154260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is quite nice. I didn't know that it could work like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will have a look it seems to be what i'm looking for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 11:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Record-value-of-same-row/m-p/414716#M154260</guid>
      <dc:creator>hschultz</dc:creator>
      <dc:date>2012-11-08T11:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get Record value of same row</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Record-value-of-same-row/m-p/414717#M154261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately this method didn't work, and in the end it was best to just do the calculations over again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 10:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Record-value-of-same-row/m-p/414717#M154261</guid>
      <dc:creator>hschultz</dc:creator>
      <dc:date>2012-11-15T10:27:42Z</dc:date>
    </item>
  </channel>
</rss>

