<?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: calculate Price Index in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculate-Price-Index-in-script/m-p/620017#M682412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;some little changes (bold) to your script to add the column &lt;STRONG&gt;#PriceFirstYear&lt;/STRONG&gt; in every rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Price_tmp:&lt;/P&gt;&lt;P&gt;CrossTable(Year, #data)&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[tsiir020 frozen as of 21 Dec 2011.xls]&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet0$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Price2_tmp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Country,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;num#(Year) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#data as #Price&lt;/P&gt;&lt;P&gt;Resident Price_tmp Where [#data]&amp;lt;&amp;gt; ':' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Price2_tmp)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Country,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(#Price, Year) as #PriceFirstYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(Year, Year) as #FirstYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Price2_tmp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Country;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Price_tmp; // Price2_tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.......................&lt;/P&gt;&lt;P&gt;.......................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Feb 2014 10:05:47 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-02-22T10:05:47Z</dc:date>
    <item>
      <title>calculate Price Index in script</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-Price-Index-in-script/m-p/620016#M682411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached QVW I have 3 variables: Country, Year and #Price. &lt;/P&gt;&lt;P&gt;For each Country I want to calculate in the LOAD Script the Price index based on the first year of data. Each country has a different start year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculation must be something like this, &lt;SPAN style="text-decoration: underline;"&gt;per country: ('#Price concurrent year' / '#Price first year') * 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me to integrate this in the &lt;SPAN style="text-decoration: underline;"&gt;LOAD Script&lt;/SPAN&gt;. I also attached the data source in excel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is appreciated! Arthur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Feb 2014 09:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-Price-Index-in-script/m-p/620016#M682411</guid>
      <dc:creator />
      <dc:date>2014-02-22T09:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: calculate Price Index in script</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-Price-Index-in-script/m-p/620017#M682412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;some little changes (bold) to your script to add the column &lt;STRONG&gt;#PriceFirstYear&lt;/STRONG&gt; in every rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Price_tmp:&lt;/P&gt;&lt;P&gt;CrossTable(Year, #data)&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[tsiir020 frozen as of 21 Dec 2011.xls]&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet0$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Price2_tmp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Country,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;num#(Year) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#data as #Price&lt;/P&gt;&lt;P&gt;Resident Price_tmp Where [#data]&amp;lt;&amp;gt; ':' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Price2_tmp)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Country,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(#Price, Year) as #PriceFirstYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(Year, Year) as #FirstYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Price2_tmp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Country;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Price_tmp; // Price2_tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.......................&lt;/P&gt;&lt;P&gt;.......................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Feb 2014 10:05:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-Price-Index-in-script/m-p/620017#M682412</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-22T10:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: calculate Price Index in script</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-Price-Index-in-script/m-p/620018#M682413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Feb 2014 10:46:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-Price-Index-in-script/m-p/620018#M682413</guid>
      <dc:creator />
      <dc:date>2014-02-22T10:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: calculate Price Index in script</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-Price-Index-in-script/m-p/620019#M682414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great job, you helped me a lot. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Feb 2014 13:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-Price-Index-in-script/m-p/620019#M682414</guid>
      <dc:creator />
      <dc:date>2014-02-22T13:52:28Z</dc:date>
    </item>
  </channel>
</rss>

