<?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: Calculate difference in same feilds and show delta in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-difference-in-same-feilds-and-show-delta/m-p/1552215#M440380</link>
    <description>&lt;P&gt;Thanks Raman,&lt;/P&gt;&lt;P&gt;But previous wont work here because in actual data, it won't be necessary that the _1 thing would be just above the original data.&lt;/P&gt;&lt;P&gt;Is there a way to identify that from any row in the data and get the difference?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2019 09:07:42 GMT</pubDate>
    <dc:creator>sujit_nath</dc:creator>
    <dc:date>2019-03-05T09:07:42Z</dc:date>
    <item>
      <title>Calculate difference in same feilds and show delta</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-in-same-feilds-and-show-delta/m-p/1552142#M440371</link>
      <description>&lt;P&gt;I have a table such as:&lt;/P&gt;&lt;P&gt;name&amp;nbsp; &amp;nbsp; count&lt;/P&gt;&lt;P&gt;java&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;200&lt;/P&gt;&lt;P&gt;java_1&amp;nbsp; &amp;nbsp;400&lt;/P&gt;&lt;P&gt;db&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 500&lt;/P&gt;&lt;P&gt;db_1&amp;nbsp; &amp;nbsp; &amp;nbsp;400&lt;/P&gt;&lt;P&gt;sql&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1000&lt;/P&gt;&lt;P&gt;sql_1&amp;nbsp; &amp;nbsp; &amp;nbsp;1000&lt;/P&gt;&lt;P&gt;_______________________________________&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the counts to be displayed as:&lt;/P&gt;&lt;P&gt;name&amp;nbsp; &amp;nbsp; count&amp;nbsp; &amp;nbsp; delta&lt;/P&gt;&lt;P&gt;java&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;400&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+200&lt;/P&gt;&lt;P&gt;db&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 500&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-100&lt;/P&gt;&lt;P&gt;sql&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;__________________________________&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically taking example of one row, Java&lt;/P&gt;&lt;P&gt;we're calculating java_1-java and showing it in the other table with + sign if count is more, or - sign accordingly.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-in-same-feilds-and-show-delta/m-p/1552142#M440371</guid>
      <dc:creator>sujit_nath</dc:creator>
      <dc:date>2024-11-16T04:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference in same feilds and show delta</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-in-same-feilds-and-show-delta/m-p/1552168#M440377</link>
      <description>&lt;P&gt;Try This&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;name, count&lt;BR /&gt;java, 200&lt;BR /&gt;java_1, 400&lt;BR /&gt;db, 500&lt;BR /&gt;db_1, 400&lt;BR /&gt;sql, 1000&lt;BR /&gt;sql_1, 1000];&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;RecNo(),&lt;BR /&gt;PurgeChar( (name),'_1') as Name,&lt;BR /&gt;count-Previous(count) as count&lt;BR /&gt;Resident Data where PurgeChar( (name),'_1')=PurgeChar( Previous(name),'_1');&lt;BR /&gt;Drop Table Data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Raman&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 07:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-in-same-feilds-and-show-delta/m-p/1552168#M440377</guid>
      <dc:creator>raman_rastogi</dc:creator>
      <dc:date>2019-03-05T07:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference in same feilds and show delta</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-in-same-feilds-and-show-delta/m-p/1552215#M440380</link>
      <description>&lt;P&gt;Thanks Raman,&lt;/P&gt;&lt;P&gt;But previous wont work here because in actual data, it won't be necessary that the _1 thing would be just above the original data.&lt;/P&gt;&lt;P&gt;Is there a way to identify that from any row in the data and get the difference?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 09:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-in-same-feilds-and-show-delta/m-p/1552215#M440380</guid>
      <dc:creator>sujit_nath</dc:creator>
      <dc:date>2019-03-05T09:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference in same feilds and show delta</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-in-same-feilds-and-show-delta/m-p/1552242#M440381</link>
      <description>&lt;P&gt;try this one&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;name, count&lt;BR /&gt;java_1, 400&lt;BR /&gt;java, 200&lt;BR /&gt;db, 500&lt;BR /&gt;db_1, 400&lt;BR /&gt;sql_1, 1000&lt;BR /&gt;sql, 1000];&lt;/P&gt;&lt;P&gt;Data_temp:&lt;BR /&gt;Load&lt;BR /&gt;name,&lt;BR /&gt;PurgeChar( (name),'_1') as Name,&lt;BR /&gt;count&lt;BR /&gt;Resident Data &lt;STRONG&gt;Order by name&lt;/STRONG&gt; ;&lt;BR /&gt;Drop Table Data;&lt;BR /&gt;Load&lt;BR /&gt;RecNo(),&lt;BR /&gt;Name,&lt;BR /&gt;count-Previous(count) as count&lt;BR /&gt;Resident Data_temp where Name=Previous(Name) ;&lt;BR /&gt;Drop Table Data_temp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 09:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-in-same-feilds-and-show-delta/m-p/1552242#M440381</guid>
      <dc:creator>raman_rastogi</dc:creator>
      <dc:date>2019-03-05T09:49:44Z</dc:date>
    </item>
  </channel>
</rss>

