<?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: Set expression using variable for field values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-expression-using-variable-for-field-values/m-p/1391286#M422993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like in attached sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Nov 2017 09:58:26 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2017-11-01T09:58:26Z</dc:date>
    <item>
      <title>Set expression using variable for field values</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-using-variable-for-field-values/m-p/1391285#M422992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this requirement where:&lt;/P&gt;&lt;P&gt;1)I need to select a field(say Amount) from one table based on the matching client values in another table.&lt;/P&gt;&lt;P&gt;2.)There is no association between the two tables based on the client field, the association is required with some other field(Ekey).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when I am creating a set expression using P(), it is working fine but when I am creating an expression using variable, it is not working&lt;SPAN style="font-size: 10pt;"&gt; in case I have more than one value for the Client field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;EmpName=,B_ClientID=P(A_ClientID)&amp;gt;}Amount) is working for Emp1, Emp2&lt;/P&gt;&lt;P&gt;sum({&amp;lt;EmpName=,B_ClientID={"$(=vClient)"}&amp;gt;}Amount) is not working for Emp2, it is working for Emp1.&lt;/P&gt;&lt;P&gt; where vClient=Concat(Distinct A_ClientID,', ')&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181721_1.JPG" style="height: 203px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/181722_2.JPG" style="height: 193px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;PFA the test qvw file for reference.&lt;/P&gt;&lt;P&gt;Due to some limitation, I need to use the variable set expression and not P() expression. Please suggest how this can be corrected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 09:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-using-variable-for-field-values/m-p/1391285#M422992</guid>
      <dc:creator>reema_dangwal</dc:creator>
      <dc:date>2017-11-01T09:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression using variable for field values</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-using-variable-for-field-values/m-p/1391286#M422993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like in attached sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 09:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-using-variable-for-field-values/m-p/1391286#M422993</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-11-01T09:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression using variable for field values</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-using-variable-for-field-values/m-p/1391287#M422994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 10:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-using-variable-for-field-values/m-p/1391287#M422994</guid>
      <dc:creator>reema_dangwal</dc:creator>
      <dc:date>2017-11-01T10:02:27Z</dc:date>
    </item>
  </channel>
</rss>

