<?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 Aanalysis - Referencing the cuurent selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213842#M500942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Maybe using P() function in set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Count({&amp;lt; [Relation Related ID] = P([Relation ID]) &amp;gt;} distinct [Relation ID])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That would read count any distinct value of "Relation ID" where "Relation Related ID" equals to any of the possible values -not excluded- of "Relation ID".&lt;/P&gt;&lt;P&gt;Is that what you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Feb 2011 01:04:29 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-02-12T01:04:29Z</dc:date>
    <item>
      <title>Set Aanalysis - Referencing the cuurent selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213841#M500941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within the current selection, I'm trying to count everybody who's spouse is also selected. Here's what I've got:&lt;/P&gt;&lt;P&gt;= Count({$&lt;BR /&gt; [Relation Related ID] = &lt;B&gt;{$[Relation ID]}&lt;/B&gt;&amp;gt;&lt;BR /&gt; }&lt;BR /&gt; distinct [Relation ID])&lt;/P&gt;&lt;P&gt;The part in bold {$[Gifts ID]} is what I know is wrong. I want that to represent all of the Relation ID's of the current selection. I know if i were to say [Relation Related ID] = [Relation ID] it would look for rows where the two fields were equal. What I want is rows where the value in [Relation Related ID] can be found anywhere in [Relation ID] of the current selection. Does that make sense?&lt;/P&gt;&lt;P&gt;Thanks very much for any help you can offer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Feb 2011 00:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213841#M500941</guid>
      <dc:creator />
      <dc:date>2011-02-12T00:57:45Z</dc:date>
    </item>
    <item>
      <title>Set Aanalysis - Referencing the cuurent selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213842#M500942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Maybe using P() function in set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Count({&amp;lt; [Relation Related ID] = P([Relation ID]) &amp;gt;} distinct [Relation ID])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That would read count any distinct value of "Relation ID" where "Relation Related ID" equals to any of the possible values -not excluded- of "Relation ID".&lt;/P&gt;&lt;P&gt;Is that what you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Feb 2011 01:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213842#M500942</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-12T01:04:29Z</dc:date>
    </item>
    <item>
      <title>Set Aanalysis - Referencing the cuurent selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213843#M500943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response Miguel. That's exactly what I'm looking for, the problem is that we're stuck with Qlikview 8.5 and as I understand it the p{} function hasn't been introduced yet.&lt;/P&gt;&lt;P&gt;I'm tempted to give up, but I want to think that it must be possible given that you can easily compare multiple sets with each other.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Feb 2011 01:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213843#M500943</guid>
      <dc:creator />
      <dc:date>2011-02-12T01:11:12Z</dc:date>
    </item>
    <item>
      <title>Set Aanalysis - Referencing the cuurent selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213844#M500944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;I don't remember if set analysis in v8.5 allows for example the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Count({&amp;lt; Field2 = {"$(=chr(39) &amp;amp; Concat(Field3, chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))"} &amp;gt;} Field1)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Or something like that, since Concat() allows to get a comma separated list of all possible values in Field3. Those chr(39) are the single quote character, required when the values are literals (strings) so the Concat() function in a text box should return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;A','B','C&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Without the first and last single quotes, that I'm adding in the set analysis modifier.&lt;/P&gt;&lt;P&gt;It may be worth checking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Feb 2011 01:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213844#M500944</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-12T01:22:24Z</dc:date>
    </item>
    <item>
      <title>Set Aanalysis - Referencing the cuurent selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213845#M500945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;I don't remember if set analysis in v8.5 allows for example the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Count({&amp;lt; Field2 = {"$(=chr(39) &amp;amp; Concat(Field3, chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))"} &amp;gt;} Field1)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Or something like that, since Concat() allows to get a comma separated list of all possible values in Field3. Those chr(39) are the single quote character, required when the values are literals (strings) so the Concat() function in a text box should return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;A','B','C&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Without the first and last single quotes, that I'm adding in the set analysis modifier.&lt;/P&gt;&lt;P&gt;It may be worth checking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Feb 2011 01:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213845#M500945</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-12T01:22:26Z</dc:date>
    </item>
    <item>
      <title>Set Aanalysis - Referencing the cuurent selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213846#M500946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll give this a shot and see if I can make it work, it seems like it should. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Feb 2011 02:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213846#M500946</guid>
      <dc:creator />
      <dc:date>2011-02-12T02:02:30Z</dc:date>
    </item>
    <item>
      <title>Set Aanalysis - Referencing the cuurent selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213847#M500947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After removing the quotes this did the trick. Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 22:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Aanalysis-Referencing-the-cuurent-selection/m-p/213847#M500947</guid>
      <dc:creator />
      <dc:date>2011-02-14T22:25:03Z</dc:date>
    </item>
  </channel>
</rss>

