<?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 Pivot table question in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pivot-table-question/m-p/114702#M7952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following pivot table and have a couple of requirements which I am struggling with:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;a) For the YEARS I only want the &lt;STRONG&gt;last 2 years&lt;/STRONG&gt; worth of data to show (i.e. 2017 and 2018 with this data set)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;b) For each shop we need to see an extra row (after 2018 in this sample) that will show the &lt;STRONG&gt;difference&lt;/STRONG&gt; between the 2 preceding years as a percentage (e.g. July/Nicosia it will be 1534-830 = &lt;STRONG&gt;+84%&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;c) After the December column I would like to see 2 column totals:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i) &lt;STRONG&gt;YTD totals&lt;/STRONG&gt; (for both years - in other words Jan-Sep for both 2018 and 2017 - see my YTD and LYTD flags that I created in code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ii) &lt;STRONG&gt;Yearly "Total"&lt;/STRONG&gt; for the whole row &lt;/P&gt;&lt;P&gt;d) &lt;STRONG&gt;Row totals&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;- By Shop&lt;/P&gt;&lt;P&gt;- Grand Total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any assistance - attaching simplified application and data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pivot.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213249_pivot.jpg" style="height: 212px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2018 09:39:06 GMT</pubDate>
    <dc:creator>alexis</dc:creator>
    <dc:date>2018-09-11T09:39:06Z</dc:date>
    <item>
      <title>Pivot table question</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-question/m-p/114702#M7952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following pivot table and have a couple of requirements which I am struggling with:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;a) For the YEARS I only want the &lt;STRONG&gt;last 2 years&lt;/STRONG&gt; worth of data to show (i.e. 2017 and 2018 with this data set)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;b) For each shop we need to see an extra row (after 2018 in this sample) that will show the &lt;STRONG&gt;difference&lt;/STRONG&gt; between the 2 preceding years as a percentage (e.g. July/Nicosia it will be 1534-830 = &lt;STRONG&gt;+84%&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;c) After the December column I would like to see 2 column totals:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i) &lt;STRONG&gt;YTD totals&lt;/STRONG&gt; (for both years - in other words Jan-Sep for both 2018 and 2017 - see my YTD and LYTD flags that I created in code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ii) &lt;STRONG&gt;Yearly "Total"&lt;/STRONG&gt; for the whole row &lt;/P&gt;&lt;P&gt;d) &lt;STRONG&gt;Row totals&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;- By Shop&lt;/P&gt;&lt;P&gt;- Grand Total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any assistance - attaching simplified application and data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pivot.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213249_pivot.jpg" style="height: 212px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 09:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-question/m-p/114702#M7952</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2018-09-11T09:39:06Z</dc:date>
    </item>
  </channel>
</rss>

