<?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 Analysis with Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/345629#M492885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/indianqvlover" id="jive-8467227711303593277037"&gt;indianqvlover&lt;/A&gt; - I'm glad to know that you have learnt something new. Thanks to Stefan.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Stefan - I have decided to use Pick/Match approach along with Concat() &amp;amp; ValueLoop() functions to generate the expression based on Dimension. Thank you for all your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;A href="http://QlikShare.com"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://QlikShare.com"&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;www.QlikShare.com&lt;BR /&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Jun 2012 22:02:36 GMT</pubDate>
    <dc:creator>IAMDV</dc:creator>
    <dc:date>2012-06-09T22:02:36Z</dc:date>
    <item>
      <title>Set Analysis with Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/345625#M492881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Dear All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Quick question on Set Analysis. I'm struggling to think and I need some help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I'm trying to use the Variable in Set Analysis which contains below expression :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="font-family: calibri,verdana,arial,sans-serif;"&gt;ONLY(ID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;And my Set Analysis Expression is :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;=SUM({$&amp;lt;Part = {"&amp;gt;$(=($(vTest)))"} &amp;gt;} MyCount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;And this is returning 0 instead it should return same values as [Matching Output] column - (Please see attached example).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I already achieved the final result in [Matching Ouput] field but when the users select the [Part] field then my numbers change and I don't them to change but there should be selection on the chart/table. That's reason I'm using the Set Analysis approach instead of using Above() and RangeSum() functions.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I hope this makes sense. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jun 2012 13:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/345625#M492881</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-06-09T13:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/345626#M492882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DV,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems to me that you are trying to create a set expression that will evaluate the ID in the context of the current line, and I believe this will not work. The set expression will be evaluate once per chart (I think you can actually see the expression used when using &amp;lt;use expression&amp;gt; as label and then hover over the label in your chart column).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are methods to use a pick / match combination to simulate an evaluation per current dimension value (by creating in fact a set expression per line), check out the discussion thread &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-1335"&gt;here&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming back to your original request, if I understood correctly, you can achieve what you want by embedding your working expression (with an appropriate set expression added) in an advanced aggregation, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=aggr(SUM({1}TOTAL MyCount) - RangeSum(Above(sum({1}MyCount),1,RowNo()) ),Part)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jun 2012 14:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/345626#M492882</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-09T14:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/345627#M492883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes sense. I keep forgetting about Set Analysis behaviour and end-up wasting my time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jun 2012 14:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/345627#M492883</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-06-09T14:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/345628#M492884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both of you, to Mr. DV for asking such a question and to Mr. Swuehl a wonderful answer and for such a nice thread. &lt;/P&gt;&lt;P&gt;One of my senior Mr. Anil (user name: anilsknp) me about both of you that some time Mr. DV and alot of time Mr. Swuehl : Stefan help him. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very nice and logical explanation Mr. Stefan headsoff to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DV can you please explain in a very simple way again that "&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;How to ask a question in community&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indian Qv Lover&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jun 2012 21:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/345628#M492884</guid>
      <dc:creator />
      <dc:date>2012-06-09T21:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/345629#M492885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/indianqvlover" id="jive-8467227711303593277037"&gt;indianqvlover&lt;/A&gt; - I'm glad to know that you have learnt something new. Thanks to Stefan.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Stefan - I have decided to use Pick/Match approach along with Concat() &amp;amp; ValueLoop() functions to generate the expression based on Dimension. Thank you for all your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;A href="http://QlikShare.com"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://QlikShare.com"&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;www.QlikShare.com&lt;BR /&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jun 2012 22:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/345629#M492885</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-06-09T22:02:36Z</dc:date>
    </item>
  </channel>
</rss>

