<?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: Pivot Table 3rd column with variance/comparison ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-3rd-column-with-variance-comparison/m-p/1649348#M507555</link>
    <description>&lt;P&gt;Oh, I forgot to say something that might be important:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The separate pivot table that compares the years has no dimensions and 7 expressions.&lt;/P&gt;&lt;P&gt;All the expressions have set analysis to calculate the previous year vs current year.&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;sum&lt;/FONT&gt;({&amp;lt; &lt;FONT color="#993300"&gt;year&lt;/FONT&gt;={'$(=Max(year))'} &amp;gt;}&amp;nbsp; &amp;nbsp; &lt;FONT color="#993300"&gt;_volume_tpm&lt;/FONT&gt;)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/&lt;FONT color="#0000FF"&gt;sum&lt;/FONT&gt;({&amp;lt;&amp;nbsp; &lt;FONT color="#993300"&gt;year&lt;/FONT&gt;={'$(=Max(year)-1)'}&amp;nbsp; &amp;gt;} &lt;FONT color="#993300"&gt;_volume_tpm&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;-1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Thanks in advance,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;LMSR&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2019 20:21:15 GMT</pubDate>
    <dc:creator>LuisMa</dc:creator>
    <dc:date>2019-11-20T20:21:15Z</dc:date>
    <item>
      <title>Pivot Table 3rd column with variance/comparison ?</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-3rd-column-with-variance-comparison/m-p/1649346#M507554</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have a pivot table with 1 dimension (year) and 7 expressions.&lt;/P&gt;&lt;P&gt;Thanks to the year dimension, I can easily see the value of each expression divided by the year.&lt;/P&gt;&lt;P&gt;But I also need to build a % variance/comparison. It should be the variation from the prior year to the current year.&lt;/P&gt;&lt;P&gt;Please see the images below:&lt;/P&gt;&lt;P&gt;Original pivot table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 395px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24110iEA0826E6BB606531/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Separate pivot table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 161px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24111i44527AB1848893AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Workaround (separate pivot table is behind the original pivot table):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 589px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24114i30A9D74283F438FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned before, 1 dimension:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 462px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24115iFB4D54E0299574BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;7 expressions:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 410px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24116i9DF740EDC93DC1B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can this value be measured in the same pivot table?&lt;/P&gt;&lt;P&gt;Any help will be useful.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-3rd-column-with-variance-comparison/m-p/1649346#M507554</guid>
      <dc:creator>LuisMa</dc:creator>
      <dc:date>2024-11-16T01:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table 3rd column with variance/comparison ?</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-3rd-column-with-variance-comparison/m-p/1649348#M507555</link>
      <description>&lt;P&gt;Oh, I forgot to say something that might be important:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The separate pivot table that compares the years has no dimensions and 7 expressions.&lt;/P&gt;&lt;P&gt;All the expressions have set analysis to calculate the previous year vs current year.&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;sum&lt;/FONT&gt;({&amp;lt; &lt;FONT color="#993300"&gt;year&lt;/FONT&gt;={'$(=Max(year))'} &amp;gt;}&amp;nbsp; &amp;nbsp; &lt;FONT color="#993300"&gt;_volume_tpm&lt;/FONT&gt;)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/&lt;FONT color="#0000FF"&gt;sum&lt;/FONT&gt;({&amp;lt;&amp;nbsp; &lt;FONT color="#993300"&gt;year&lt;/FONT&gt;={'$(=Max(year)-1)'}&amp;nbsp; &amp;gt;} &lt;FONT color="#993300"&gt;_volume_tpm&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;-1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Thanks in advance,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;LMSR&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 20:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-3rd-column-with-variance-comparison/m-p/1649348#M507555</guid>
      <dc:creator>LuisMa</dc:creator>
      <dc:date>2019-11-20T20:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table 3rd column with variance/comparison ?</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-3rd-column-with-variance-comparison/m-p/1654304#M507556</link>
      <description>&lt;P&gt;Luis, I may be missing something here, but I think the Column function may be what you are looking for on this one:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/InterRecordFunctions/column.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/InterRecordFunctions/column.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You would just specify the column(x)-column(y) etc...&amp;nbsp; Not sure if I am missing something or not, hopefully this may be what you need.&amp;nbsp; I was not sure if you had more years in the table or not as well, but I think you can just put in multiple expressions in that case using the correct column references etc...&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 19:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-3rd-column-with-variance-comparison/m-p/1654304#M507556</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-04T19:43:52Z</dc:date>
    </item>
  </channel>
</rss>

