<?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 calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-calculations/m-p/1530892#M508328</link>
    <description>&lt;P&gt;Dear all,&lt;BR /&gt;&lt;BR /&gt;Is there a way to add calculated columns on a pivot table? ie I have one dimension of products and one dimension of dates and an expression of sales.&lt;BR /&gt;&lt;BR /&gt;The products are the first columns, dates are across on the top giving me the sales by date. On the very last columns following the latest date, I want to calculate a movement between the latest available date (in dimension) and the prior one.&lt;BR /&gt;&lt;BR /&gt;So I would like to be able to show the historic sales plus the latest change.&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;PRE&gt;LOAD * INLINE [
    Product, Date, Sale
    A, 31/01/2019, 100
    B, 28/02/2019, 150
    A, 28/02/2019, 50
    B, 31/01/2019, 200
    A, 31/03/2019, 50
    B, 31/03/2019, 200  
];&lt;/PRE&gt;&lt;P&gt;Pivot table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-01-16 at 20.43.30.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3890i7D516A897DA45624/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2019-01-16 at 20.43.30.png" alt="Screenshot 2019-01-16 at 20.43.30.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ask is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-01-16 at 20.43.15.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3891i77AA5BCF5E288A26/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-01-16 at 20.43.15.png" alt="Screenshot 2019-01-16 at 20.43.15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is this doable?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:44:46 GMT</pubDate>
    <dc:creator>aetingu12</dc:creator>
    <dc:date>2024-11-16T04:44:46Z</dc:date>
    <item>
      <title>Pivot table calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-calculations/m-p/1530892#M508328</link>
      <description>&lt;P&gt;Dear all,&lt;BR /&gt;&lt;BR /&gt;Is there a way to add calculated columns on a pivot table? ie I have one dimension of products and one dimension of dates and an expression of sales.&lt;BR /&gt;&lt;BR /&gt;The products are the first columns, dates are across on the top giving me the sales by date. On the very last columns following the latest date, I want to calculate a movement between the latest available date (in dimension) and the prior one.&lt;BR /&gt;&lt;BR /&gt;So I would like to be able to show the historic sales plus the latest change.&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;PRE&gt;LOAD * INLINE [
    Product, Date, Sale
    A, 31/01/2019, 100
    B, 28/02/2019, 150
    A, 28/02/2019, 50
    B, 31/01/2019, 200
    A, 31/03/2019, 50
    B, 31/03/2019, 200  
];&lt;/PRE&gt;&lt;P&gt;Pivot table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-01-16 at 20.43.30.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3890i7D516A897DA45624/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2019-01-16 at 20.43.30.png" alt="Screenshot 2019-01-16 at 20.43.30.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ask is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-01-16 at 20.43.15.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3891i77AA5BCF5E288A26/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-01-16 at 20.43.15.png" alt="Screenshot 2019-01-16 at 20.43.15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is this doable?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-calculations/m-p/1530892#M508328</guid>
      <dc:creator>aetingu12</dc:creator>
      <dc:date>2024-11-16T04:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-calculations/m-p/1530909#M508329</link>
      <description>&lt;P&gt;Please share sample data and expected output.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 11:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-calculations/m-p/1530909#M508329</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2019-01-16T11:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-calculations/m-p/1530916#M508330</link>
      <description>Just added an excel image to explain the output</description>
      <pubDate>Wed, 16 Jan 2019 11:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-calculations/m-p/1530916#M508330</guid>
      <dc:creator>aetingu12</dc:creator>
      <dc:date>2019-01-16T11:39:22Z</dc:date>
    </item>
  </channel>
</rss>

