<?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: YOY calculation in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83714#M13738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pivot Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;country&lt;/P&gt;&lt;P&gt;product&lt;/P&gt;&lt;P&gt;year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;=sum(revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;=If(RowNo()=1,0,Above(sum(revenue)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;(SUM(revenue) - If(RowNo()=1,0,Above(sum(revenue))))/If(RowNo()=1,0,Above(sum(revenue)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Feb 2018 14:23:30 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2018-02-11T14:23:30Z</dc:date>
    <item>
      <title>YOY calculation in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83711#M13735</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 would require a help for&amp;nbsp; calculation of a separate column YOY(year over year)&amp;nbsp; in a pivot table. i am not able to come up with any solution. Please find the attached File.&lt;/P&gt;&lt;P&gt;The calculation for the column will be ((current year(revenue) - previous year(revenue) )/previous year (revenue))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the below inline statement to mock up the data. the Country, year and product are the dimension in my pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;country,year,product,revenue&lt;/P&gt;&lt;P&gt;US,2015,cash,6356&lt;/P&gt;&lt;P&gt;US,2015,pgm trading,354&lt;/P&gt;&lt;P&gt;US,2015,Options,847&lt;/P&gt;&lt;P&gt;US,2016,cash,7467&lt;/P&gt;&lt;P&gt;US,2016,pgm trading,355&lt;/P&gt;&lt;P&gt;US,2016,Options,734&lt;/P&gt;&lt;P&gt;US,2017,cash,837&lt;/P&gt;&lt;P&gt;US,2017,pgm trading,4587&lt;/P&gt;&lt;P&gt;US,2017,Options,86&lt;/P&gt;&lt;P&gt;Canada,2015,cash,3476&lt;/P&gt;&lt;P&gt;Canada,2015,pgm trading,4434&lt;/P&gt;&lt;P&gt;Canada,2015,Options,788&lt;/P&gt;&lt;P&gt;Canada,2016,cash,3444&lt;/P&gt;&lt;P&gt;Canada,2016,pgm trading,8588&lt;/P&gt;&lt;P&gt;Canada,2016,Options,897&lt;/P&gt;&lt;P&gt;Canada,2017,cash,7634&lt;/P&gt;&lt;P&gt;Canada,2017,pgm trading,7565&lt;/P&gt;&lt;P&gt;Canada,2017,Options,889&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 13:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83711#M13735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-11T13:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: YOY calculation in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83712#M13736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 13:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83712#M13736</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-02-11T13:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: YOY calculation in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83713#M13737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks manish for your response, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please share the&amp;nbsp; expression as i cannot see it because i have&amp;nbsp; personal edition installed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 13:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83713#M13737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-11T13:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: YOY calculation in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83714#M13738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pivot Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;country&lt;/P&gt;&lt;P&gt;product&lt;/P&gt;&lt;P&gt;year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;=sum(revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;=If(RowNo()=1,0,Above(sum(revenue)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;(SUM(revenue) - If(RowNo()=1,0,Above(sum(revenue))))/If(RowNo()=1,0,Above(sum(revenue)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 14:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83714#M13738</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-02-11T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: YOY calculation in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83715#M13739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manish, there is a catch here, my second dimension is Year not product. Hope you can help me with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 14:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83715#M13739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-11T14:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: YOY calculation in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83716#M13740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;of course&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use same dimensions as you mentioned !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) sum(revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(sum(revenue)- aggr(above(sum({&amp;lt;year=&amp;gt;}revenue)),country,product,year))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(above(sum({&amp;lt;year=&amp;gt;}revenue)),country,product,year)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 17:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83716#M13740</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-02-11T17:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: YOY calculation in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83717#M13741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the expression and it seems to have worked for me but i am not able to grasp it.&lt;/P&gt;&lt;P&gt;i have sorted the year in descending and your above formula worked . isn't it wierd? you are using above function&lt;/P&gt;&lt;P&gt;but there is no data above the year 2017, how does it work? can you please give me a short explanation. sorry for bothering you. please see the screenshot of what i did. also please find the file attached in case you want to refer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also can we have a calculation for total too?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="yoy.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193048_yoy.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 18:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83717#M13741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-11T18:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: YOY calculation in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83718#M13742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am outside so will come back to you tomorrow. Can you close this thread by selecting my answer correct or helpful?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will come back to you on your query will proper explanation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 19:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83718#M13742</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-02-11T19:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: YOY calculation in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83719#M13743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi manish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting for your updates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 13:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YOY-calculation-in-pivot-table/m-p/83719#M13743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-12T13:27:39Z</dc:date>
    </item>
  </channel>
</rss>

