<?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 column wise comparison in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pivot-table-column-wise-comparison/m-p/2069351#M87688</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I have a data set like below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Karthick30_0-1683657873298.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106772i1FF55079E71DF325/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Karthick30_0-1683657873298.png" alt="Karthick30_0-1683657873298.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Logic I need help is ... For each month , we have to compare with previous months.. if current month value is greater than previous month value means, subtract them and return the subtracted value.&lt;/P&gt;
&lt;P&gt;If current month value is lesser than previous month means, it should be 0.. Next month comparison should be compared with the previous to Previous month ( which ever month has higher value )&lt;/P&gt;
&lt;P&gt;For my above dataset, I need the output like below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Karthick30_1-1683658090468.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106773iB5940B401C49CD06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Karthick30_1-1683658090468.png" alt="Karthick30_1-1683658090468.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here if you see for Spain.. Feb 23 is ( 55-50 = 5 )&lt;/P&gt;
&lt;P&gt;but for India , feb value is lesser than Jan. so its 0. again March value is lesser than Jan.. its should be 0 again. April value is higher than Jan. so ( 90 - 85 = 5 ) for Apr -23 ( India )&lt;/P&gt;
&lt;P&gt;Any help on this..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 18:50:39 GMT</pubDate>
    <dc:creator>Karthick30</dc:creator>
    <dc:date>2023-05-09T18:50:39Z</dc:date>
    <item>
      <title>Pivot table column wise comparison</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-column-wise-comparison/m-p/2069351#M87688</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I have a data set like below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Karthick30_0-1683657873298.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106772i1FF55079E71DF325/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Karthick30_0-1683657873298.png" alt="Karthick30_0-1683657873298.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Logic I need help is ... For each month , we have to compare with previous months.. if current month value is greater than previous month value means, subtract them and return the subtracted value.&lt;/P&gt;
&lt;P&gt;If current month value is lesser than previous month means, it should be 0.. Next month comparison should be compared with the previous to Previous month ( which ever month has higher value )&lt;/P&gt;
&lt;P&gt;For my above dataset, I need the output like below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Karthick30_1-1683658090468.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106773iB5940B401C49CD06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Karthick30_1-1683658090468.png" alt="Karthick30_1-1683658090468.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here if you see for Spain.. Feb 23 is ( 55-50 = 5 )&lt;/P&gt;
&lt;P&gt;but for India , feb value is lesser than Jan. so its 0. again March value is lesser than Jan.. its should be 0 again. April value is higher than Jan. so ( 90 - 85 = 5 ) for Apr -23 ( India )&lt;/P&gt;
&lt;P&gt;Any help on this..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 18:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-column-wise-comparison/m-p/2069351#M87688</guid>
      <dc:creator>Karthick30</dc:creator>
      <dc:date>2023-05-09T18:50:39Z</dc:date>
    </item>
  </channel>
</rss>

