<?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 Compare two columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-two-columns/m-p/681859#M247209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with below simple case. I have got data like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, AMT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 400&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I select two values or more on TST then I would like to see this values be selected on ID and show me sum of AMT for it.&lt;/P&gt;&lt;P&gt;Please check below images and my incorrect expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64439_1.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64440_2.PNG.png" style="width: 620px; height: 76px;" /&gt;&lt;/P&gt;&lt;P&gt;My Problem:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64441_3.PNG.png" style="width: 620px; height: 80px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2014 12:15:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-14T12:15:14Z</dc:date>
    <item>
      <title>Compare two columns</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-columns/m-p/681859#M247209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with below simple case. I have got data like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, AMT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 400&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I select two values or more on TST then I would like to see this values be selected on ID and show me sum of AMT for it.&lt;/P&gt;&lt;P&gt;Please check below images and my incorrect expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64439_1.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64440_2.PNG.png" style="width: 620px; height: 76px;" /&gt;&lt;/P&gt;&lt;P&gt;My Problem:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64441_3.PNG.png" style="width: 620px; height: 80px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 12:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-columns/m-p/681859#M247209</guid>
      <dc:creator />
      <dc:date>2014-08-14T12:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two columns</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-columns/m-p/681860#M247210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you write ID={'1,3'} it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To have that live and not hard coded, use the concat function to create the 1,3 or whatever is selected, and use it either directly or through a variable in your set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somehting like : ID={"$(=concat(TST, ','))"}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 12:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-columns/m-p/681860#M247210</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-08-14T12:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two columns</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-columns/m-p/681861#M247211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to use the concat function&lt;/P&gt;&lt;P&gt;sum({&amp;lt;ID={=concat(TST,",")}&amp;gt;}AMT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 12:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-columns/m-p/681861#M247211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-14T12:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two columns</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-columns/m-p/681862#M247212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;ID=P(TST)&amp;gt;} AMT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 12:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-columns/m-p/681862#M247212</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-08-14T12:23:15Z</dc:date>
    </item>
  </channel>
</rss>

