<?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 the variation from a field name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-the-variation-from-a-field-name/m-p/700731#M252936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was just thinking that to create a more dynamic solution try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add 'Year' as your chart dimension. &lt;/P&gt;&lt;P&gt;Sort the chart on Year ascending&lt;/P&gt;&lt;P&gt;add an expression that grabs the preceding row using the above() function to calculate % change:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum(Sales) - above(sum (Sales))) / above (sum (Sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 15:16:13 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-09-15T15:16:13Z</dc:date>
    <item>
      <title>Calculate the variation from a field name</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-variation-from-a-field-name/m-p/700729#M252934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have created an iterative table like tis one:&lt;/P&gt;&lt;P&gt;Tab_Year:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;$(year) as Year,&lt;/P&gt;&lt;P&gt;Region, &lt;/P&gt;&lt;P&gt;AK as Price, &lt;/P&gt;&lt;P&gt;AS as Quantity&lt;/P&gt;&lt;P&gt;Resident Tab_year_tmp;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;//Second year&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;($(year)+'1') as Year, &lt;/P&gt;&lt;P&gt;Region,&lt;/P&gt;&lt;P&gt; AL as Price, &lt;/P&gt;&lt;P&gt;AT as Quantity&lt;/P&gt;&lt;P&gt;Resident Tab_year_tmp;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;where $(year) is the variable of the starting year, AK is the 2014 price and AS the quantity of 2014, AL is the price of 2015, AT the quantity of 2015 and so on.&lt;/P&gt;&lt;P&gt;now I'd like to do something like that:&lt;/P&gt;&lt;P&gt;(Price2015-Price2014)/Price2014 &lt;/P&gt;&lt;P&gt;for each year but I can't figure it out because the price of the different years are all in the field Price.&lt;/P&gt;&lt;P&gt;(I should have for each year the actual value and the previous one)&lt;/P&gt;&lt;P&gt;how can I do???&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-variation-from-a-field-name/m-p/700729#M252934</guid>
      <dc:creator />
      <dc:date>2014-09-15T15:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the variation from a field name</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-variation-from-a-field-name/m-p/700730#M252935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SET ANALYSIS will help. You can use it in a text box, chart, anywhere in the UI where expressions are allowed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum ( {$&amp;lt;Year={2015}&amp;gt;}&amp;nbsp; Price) -&amp;nbsp; sum ( {$&amp;lt;Year={2014}&amp;gt;}&amp;nbsp; Price) - ) /&amp;nbsp; sum ( {$&amp;lt;Year={2014}&amp;gt;}&amp;nbsp; Price) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:12:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-variation-from-a-field-name/m-p/700730#M252935</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-15T15:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the variation from a field name</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-variation-from-a-field-name/m-p/700731#M252936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was just thinking that to create a more dynamic solution try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add 'Year' as your chart dimension. &lt;/P&gt;&lt;P&gt;Sort the chart on Year ascending&lt;/P&gt;&lt;P&gt;add an expression that grabs the preceding row using the above() function to calculate % change:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum(Sales) - above(sum (Sales))) / above (sum (Sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-variation-from-a-field-name/m-p/700731#M252936</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-15T15:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the variation from a field name</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-variation-from-a-field-name/m-p/700732#M252937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I can't write 2014..2015 in the expression because I have the $(year) that counts the years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-variation-from-a-field-name/m-p/700732#M252937</guid>
      <dc:creator />
      <dc:date>2014-09-15T15:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the variation from a field name</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-variation-from-a-field-name/m-p/700733#M252938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with this expression but It doesen't show any value!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((sum({$&amp;lt;Year={$($(#year)}&amp;gt;}(Price/Quantity))-sum({$&amp;lt;Year={$(#=Only($year)-1)}&amp;gt;}(Price/Quantity)))/(sum({$&amp;lt;Year={$(#=Only($year)-1)}&amp;gt;}(Price/Quantity))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 08:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-variation-from-a-field-name/m-p/700733#M252938</guid>
      <dc:creator />
      <dc:date>2014-09-16T08:26:36Z</dc:date>
    </item>
  </channel>
</rss>

