<?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 What's wrong with this set expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-this-set-expression/m-p/324706#M495180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create one Variable vFIELD= '=concat(Chr(39) &amp;amp;FIELD_B&amp;amp;Chr(39),',')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM( { &amp;lt;FIELD_A = {'$(vFIELD)'}&amp;gt;}METRIC) .u try This method .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2012 12:44:14 GMT</pubDate>
    <dc:creator>perumal_41</dc:creator>
    <dc:date>2012-02-28T12:44:14Z</dc:date>
    <item>
      <title>What's wrong with this set expression?</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-this-set-expression/m-p/324703#M495177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; SUM( { &amp;lt;FIELD_A = FIELD_B&amp;gt; } METRIC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to Sum all values of METRIC where values of FIELD_A match the values of FIELD_B.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 12:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-this-set-expression/m-p/324703#M495177</guid>
      <dc:creator>bimartingo</dc:creator>
      <dc:date>2012-02-28T12:26:18Z</dc:date>
    </item>
    <item>
      <title>What's wrong with this set expression?</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-this-set-expression/m-p/324704#M495178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is wrong because the fields FIELD_B has many different values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM( { &amp;lt;FIELD_A = {$(=Concat(FIELD_B,',')}&amp;gt; } METRIC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Tonial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 12:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-this-set-expression/m-p/324704#M495178</guid>
      <dc:creator>fernando_tonial</dc:creator>
      <dc:date>2012-02-28T12:38:38Z</dc:date>
    </item>
    <item>
      <title>What's wrong with this set expression?</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-this-set-expression/m-p/324705#M495179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Did you checked is there is any values avilable in both the columns?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 12:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-this-set-expression/m-p/324705#M495179</guid>
      <dc:creator />
      <dc:date>2012-02-28T12:39:30Z</dc:date>
    </item>
    <item>
      <title>What's wrong with this set expression?</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-this-set-expression/m-p/324706#M495180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create one Variable vFIELD= '=concat(Chr(39) &amp;amp;FIELD_B&amp;amp;Chr(39),',')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM( { &amp;lt;FIELD_A = {'$(vFIELD)'}&amp;gt;}METRIC) .u try This method .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 12:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-this-set-expression/m-p/324706#M495180</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2012-02-28T12:44:14Z</dc:date>
    </item>
    <item>
      <title>What's wrong with this set expression?</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-this-set-expression/m-p/324707#M495181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;One alternative to Fernando`s solution is the p() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM( { &amp;lt;FIELD_A =p(FIELD_B)}&amp;gt; } METRIC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you want to make a test row by row, I suggest you create a flag in script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD FIELD_A, FIELD_B,&lt;/P&gt;&lt;P&gt;IF( FIELD_A = FIELD_B, 1,0) AS FLAG_AB&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, your set analysis would be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SUM( { &amp;lt;FLAG_AB = {1}}&amp;gt; } METRIC)&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 12:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-this-set-expression/m-p/324707#M495181</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-02-28T12:44:29Z</dc:date>
    </item>
  </channel>
</rss>

