<?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 Set Analysis in Dynamic Expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Dynamic-Expression/m-p/521433#M482236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This statement works:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; sum({$&amp;lt;[STATE]=&amp;gt;} MEMBER_COUNT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sums the member count ignore the selection in the STATE field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement does not work:&lt;/P&gt;&lt;P&gt; $(='sum({$&amp;lt;[STATE]=&amp;gt;} MEMBER_COUNT)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That above statement will ignore the set analysis and sum the member count of only the state selected.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Am I doing something wrong here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm asking because ultimately I'm trying to get this expression to work&lt;/P&gt;&lt;P&gt;$(='sum({$&amp;lt;['&amp;amp;(vIndexOnField)&amp;gt;&amp;amp;'=&amp;gt;} MEMBER_COUNT)')&lt;/P&gt;&lt;P&gt;...where vIndexOnField a variable that is set to 1 of 50 possible fields that I may want to index my results against the full set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how do I get:&amp;nbsp;&amp;nbsp;&amp;nbsp; $(='sum({$&amp;lt;[STATE]=&amp;gt;} MEMBER_COUNT)') to correctly evaluate ignoring the selections made in the STATE field?&amp;nbsp; Shouldn't that evaluate the same as the first statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 23:56:01 GMT</pubDate>
    <dc:creator>vdacanay</dc:creator>
    <dc:date>2013-08-22T23:56:01Z</dc:date>
    <item>
      <title>Set Analysis in Dynamic Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Dynamic-Expression/m-p/521433#M482236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This statement works:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; sum({$&amp;lt;[STATE]=&amp;gt;} MEMBER_COUNT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sums the member count ignore the selection in the STATE field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement does not work:&lt;/P&gt;&lt;P&gt; $(='sum({$&amp;lt;[STATE]=&amp;gt;} MEMBER_COUNT)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That above statement will ignore the set analysis and sum the member count of only the state selected.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Am I doing something wrong here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm asking because ultimately I'm trying to get this expression to work&lt;/P&gt;&lt;P&gt;$(='sum({$&amp;lt;['&amp;amp;(vIndexOnField)&amp;gt;&amp;amp;'=&amp;gt;} MEMBER_COUNT)')&lt;/P&gt;&lt;P&gt;...where vIndexOnField a variable that is set to 1 of 50 possible fields that I may want to index my results against the full set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how do I get:&amp;nbsp;&amp;nbsp;&amp;nbsp; $(='sum({$&amp;lt;[STATE]=&amp;gt;} MEMBER_COUNT)') to correctly evaluate ignoring the selections made in the STATE field?&amp;nbsp; Shouldn't that evaluate the same as the first statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 23:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Dynamic-Expression/m-p/521433#M482236</guid>
      <dc:creator>vdacanay</dc:creator>
      <dc:date>2013-08-22T23:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Dynamic Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Dynamic-Expression/m-p/521434#M482237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vince,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work, I tried (assuming I got you question correctly):&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[$(vIndexOnField)]=&amp;gt;} MEMBER_COUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 00:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Dynamic-Expression/m-p/521434#M482237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-23T00:05:53Z</dc:date>
    </item>
  </channel>
</rss>

