<?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 Normalize values on load by referencing specific record in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Normalize-values-on-load-by-referencing-specific-record/m-p/238657#M89472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got some statistics info that show market share starting 2000 until 2010. I read the table like this&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;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;Year &lt;B&gt;as&lt;/B&gt; STAT_year,&lt;BR /&gt;amount as STAT_amount,&lt;BR /&gt;amount / amount[0] as STAT_factor &lt;STRONG&gt;| I know this line doesn't work!&lt;/STRONG&gt;&lt;BR /&gt;&lt;B&gt;RESIDENT&lt;/B&gt; STAT2010; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to "normalize" the amount values so that they become a factor or fraction of the amount in the first recordset that was read.&lt;/P&gt;&lt;P&gt;2000, 100, 1&lt;BR /&gt;2001, 110, 1.1&lt;BR /&gt;2002, 90, 0.9&lt;BR /&gt;a.s.o.&lt;/P&gt;&lt;P&gt;How can I do this? How can I reference the amount value of the first recordset?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jul 2010 13:18:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-30T13:18:14Z</dc:date>
    <item>
      <title>Normalize values on load by referencing specific record</title>
      <link>https://community.qlik.com/t5/QlikView/Normalize-values-on-load-by-referencing-specific-record/m-p/238657#M89472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got some statistics info that show market share starting 2000 until 2010. I read the table like this&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;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;Year &lt;B&gt;as&lt;/B&gt; STAT_year,&lt;BR /&gt;amount as STAT_amount,&lt;BR /&gt;amount / amount[0] as STAT_factor &lt;STRONG&gt;| I know this line doesn't work!&lt;/STRONG&gt;&lt;BR /&gt;&lt;B&gt;RESIDENT&lt;/B&gt; STAT2010; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to "normalize" the amount values so that they become a factor or fraction of the amount in the first recordset that was read.&lt;/P&gt;&lt;P&gt;2000, 100, 1&lt;BR /&gt;2001, 110, 1.1&lt;BR /&gt;2002, 90, 0.9&lt;BR /&gt;a.s.o.&lt;/P&gt;&lt;P&gt;How can I do this? How can I reference the amount value of the first recordset?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 13:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Normalize-values-on-load-by-referencing-specific-record/m-p/238657#M89472</guid>
      <dc:creator />
      <dc:date>2010-07-30T13:18:14Z</dc:date>
    </item>
    <item>
      <title>Normalize values on load by referencing specific record</title>
      <link>https://community.qlik.com/t5/QlikView/Normalize-values-on-load-by-referencing-specific-record/m-p/238658#M89473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Georg,&lt;/P&gt;&lt;P&gt;I understand you want to achieve this in the load script. You can use rangesum, peek or lookup to get something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Normalized: Year as STAT_year, Amount as STAT_amount, Amount / Peek(Amount, 0) as FactorRESIDENT STAT2010;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 13:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Normalize-values-on-load-by-referencing-specific-record/m-p/238658#M89473</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-07-30T13:34:47Z</dc:date>
    </item>
  </channel>
</rss>

