<?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 CALCULATED COLUMN in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/CALCULATED-COLUMN/m-p/942296#M645874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table with Years in "columns", "Countries" in rows and "Amount" as Measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to create a column between every element of dimension (Year) with the variation between 2016 with 2015, &lt;SPAN style="font-size: 13.3333px;"&gt;2015 with 2014, &lt;SPAN style="font-size: 13.3333px;"&gt;2014 with 2013...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attach a image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlik2.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109196_qlik2.jpg" style="height: 315px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2015 17:15:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-16T17:15:10Z</dc:date>
    <item>
      <title>CALCULATED COLUMN</title>
      <link>https://community.qlik.com/t5/QlikView/CALCULATED-COLUMN/m-p/942296#M645874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table with Years in "columns", "Countries" in rows and "Amount" as Measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to create a column between every element of dimension (Year) with the variation between 2016 with 2015, &lt;SPAN style="font-size: 13.3333px;"&gt;2015 with 2014, &lt;SPAN style="font-size: 13.3333px;"&gt;2014 with 2013...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attach a image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlik2.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109196_qlik2.jpg" style="height: 315px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 17:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CALCULATED-COLUMN/m-p/942296#M645874</guid>
      <dc:creator />
      <dc:date>2015-12-16T17:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATED COLUMN</title>
      <link>https://community.qlik.com/t5/QlikView/CALCULATED-COLUMN/m-p/942297#M645875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest something along the lines of having each year as an expression such as&lt;/P&gt;&lt;P&gt;year(today()) = 2015&lt;/P&gt;&lt;P&gt;year(today()) +1= 2016&lt;/P&gt;&lt;P&gt;year (today()) - 1 = 2014&lt;/P&gt;&lt;P&gt;year (today()) - 2 = 2013&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so forth depeneing how far you want to go back - this will allow the oldest year to roll off&lt;/P&gt;&lt;P&gt;you would also then create an expressions where you would subtract&lt;/P&gt;&lt;P&gt;year(today() - year(today()-1) using set analysis&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="109195" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109195_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="109202" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/109202_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;you would then add your variation expression inbetween the year expressions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 17:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CALCULATED-COLUMN/m-p/942297#M645875</guid>
      <dc:creator />
      <dc:date>2015-12-16T17:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATED COLUMN</title>
      <link>https://community.qlik.com/t5/QlikView/CALCULATED-COLUMN/m-p/942298#M645876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can almost get what you want by using two expressions&lt;/P&gt;&lt;P&gt;1. Sum(Amount) &lt;/P&gt;&lt;P&gt;2. Sum(Amount)-Before(Sum(Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 17:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CALCULATED-COLUMN/m-p/942298#M645876</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-16T17:43:29Z</dc:date>
    </item>
  </channel>
</rss>

