<?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: Compare values from different fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487804#M480100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want that at chart level, please find the attached document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Angad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Dec 2013 09:26:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-16T09:26:07Z</dc:date>
    <item>
      <title>Compare values from different fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487801#M480097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's a challenge I'm currently facing: I got three Fields (Code A, Code B, Wert)&amp;nbsp; (Wert is German for value). The values in Code A und Code B a from the same co-domain, but from different sources (hence two fields). I need to compare the summed Wert for each distinct value from this co-domain depending on the source. The appended image serves as an example of what I'm planning to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/50489_Unbenannt.PNG.png" style="width: 620px; height: 335px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to get this done efficiently in Qlikview? Any help would be appreciated! Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added an example QV document for you to modify and experiment with if required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bests!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 08:44:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487801#M480097</guid>
      <dc:creator />
      <dc:date>2013-12-16T08:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values from different fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487802#M480098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it in the script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CodeA, CodeB, Wert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 1, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 2, 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 2, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 1, 80&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD CodeA as Code,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(Wert) as WertA&lt;/P&gt;&lt;P&gt;Resident INPUT GROUP BY CodeA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN LOAD CodeB as Code,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(Wert) as WertB&lt;/P&gt;&lt;P&gt;Resident INPUT GROUP BY CodeB;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 08:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487802#M480098</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-16T08:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Compare values from different fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487803#M480099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, a lot! This is the correct answer to the initial question. However, it seem like I forgot to add that there are various additional attributes associated with each row (like Year, see the updated, attached qvw). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using your suggested solution will cause ignorance of selections being made. Right? Any way to circumvent this except for using additional attributes in the group by clause which isn't really efficient given the number of attributes I have got in my original application. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 09:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487803#M480099</guid>
      <dc:creator />
      <dc:date>2013-12-16T09:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values from different fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487804#M480100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want that at chart level, please find the attached document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Angad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 09:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487804#M480100</guid>
      <dc:creator />
      <dc:date>2013-12-16T09:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values from different fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487805#M480101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand what you mean, selections in Year should be working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you expect to see using your sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 09:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487805#M480101</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-16T09:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Compare values from different fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487806#M480102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached application as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 10:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487806#M480102</guid>
      <dc:creator>rahulgupta</dc:creator>
      <dc:date>2013-12-16T10:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Compare values from different fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487807#M480103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angad!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your solution! It is close but behaves unexpected whenever you select a certain value from Code A or Code B (see image, and try it in your solution).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt2.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/50495_Unbenannt2.PNG.png" style="width: 620px; height: 204px;" /&gt;&lt;/P&gt;&lt;P&gt;I think the RangeMax swallows the 1 here, doesn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 11:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487807#M480103</guid>
      <dc:creator />
      <dc:date>2013-12-16T11:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Compare values from different fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487808#M480104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, your solution will work, but only with the minimal example. Whenever you get another Field in the INPUT table, you would need to add it to the computed table and the GROUP BY statement, which is very inflexible. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 11:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-from-different-fields/m-p/487808#M480104</guid>
      <dc:creator />
      <dc:date>2013-12-16T11:02:32Z</dc:date>
    </item>
  </channel>
</rss>

