<?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: Difference of two rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036666#M349405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Sunny.&lt;/P&gt;&lt;P&gt;Script changes can be an option&lt;/P&gt;&lt;P&gt;I added calcualted dimension but that does not bring any values&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116109_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I', missing here?&lt;/P&gt;&lt;P&gt;Do you have an example of&amp;nbsp; this methode?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Feb 2016 08:48:33 GMT</pubDate>
    <dc:creator>robert_mika</dc:creator>
    <dc:date>2016-02-26T08:48:33Z</dc:date>
    <item>
      <title>Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036662#M349401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is&amp;nbsp; the a way to add an additional row to a table/pivot table?&lt;/P&gt;&lt;P&gt;My challenge is to take difference between two rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116086_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know the difference between B and A for Mike and John.&lt;/P&gt;&lt;P&gt;Is it possible to do that in a table with expression or only script level?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 08:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036662#M349401</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2016-02-26T08:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036663#M349402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;column(2)-column(1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 08:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036663#M349402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-26T08:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036664#M349403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might be able to use ValueList here, have not tested but usually works with an Island table, but since you showed reluctance for script changes try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(ValueList(1, 2), Opportunieties, 'Difference')&lt;/STRONG&gt; -&amp;gt; as your dimension&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression should be something along these lines&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(ValueList(1, 2), 'However you would calculate the difference', YourCurrentExpression')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 08:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036664#M349403</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-26T08:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036665#M349404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be done in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-02-26 #2.PNG" class="jive-image image-1" src="/legacyfs/online/116092_2016-02-26 #2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-02-26 #1.PNG" class="jive-image image-2" src="/legacyfs/online/116105_2016-02-26 #1.PNG" style="height: 126px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 08:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036665#M349404</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-02-26T08:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036666#M349405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Sunny.&lt;/P&gt;&lt;P&gt;Script changes can be an option&lt;/P&gt;&lt;P&gt;I added calcualted dimension but that does not bring any values&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116109_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I', missing here?&lt;/P&gt;&lt;P&gt;Do you have an example of&amp;nbsp; this methode?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 08:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036666#M349405</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2016-02-26T08:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036667#M349406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a typo in the expression for John... so the calculation is wrong. It should state John in both Sums of that expression - not mixing John and Mike...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 08:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036667#M349406</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-02-26T08:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036668#M349407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this your real case, i.e. - only two line items would be there in your table? I ask this because, I doubt the alternative approaches would be suggested be dynamic unless you go with script solution. And if you are okay with static solution, let know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 09:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036668#M349407</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-02-26T09:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036669#M349408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 09:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036669#M349408</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-02-26T09:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036670#M349409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another one by making changes to &lt;A _jive_internal="true" href="https://community.qlik.com/people/tresesco"&gt;tresesco&lt;/A&gt;‌'s provided solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116122_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 10:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036670#M349409</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-26T10:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036671#M349410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like ValueList doesn't work. I added a sample by modifying tresesco's qvw. See if that one seems like a viable solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 10:20:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036671#M349410</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-26T10:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036672#M349411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt;Your solution works.But as you mentioned there will be more item in the table.&lt;/P&gt;&lt;P&gt;Is there any other approach in case I will have up to 20 or more names?&lt;/P&gt;&lt;P&gt;Can the pick/match pull names from a list instead of static entries?&lt;/P&gt;&lt;P&gt;So for each name create the same expression but change that for the difference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 10:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036672#M349411</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2016-02-26T10:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036673#M349412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just have seen that and testing...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 10:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036673#M349412</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2016-02-26T10:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036674#M349413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my solution, pick(match.. is in fact picking the values from dimensions. But the challenge in this approach would come when the rows increase. That means, would you expect a difference row after every couple of rows? Or, how? A sample with at least two differences would help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 10:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036674#M349413</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-02-26T10:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Difference of two rows</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036675#M349414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for the input.&lt;/P&gt;&lt;P&gt;Tresesco/Sunny your combined effort has brought the final solutions.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 12:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-of-two-rows/m-p/1036675#M349414</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2016-02-26T12:40:09Z</dc:date>
    </item>
  </channel>
</rss>

