<?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 &amp; intersection (*=) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-intersection/m-p/522890#M195362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Steve!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question around the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{"**"} modifier... Is that the right way to do 'not null'?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Oct 2013 22:19:03 GMT</pubDate>
    <dc:creator>mikecrengland</dc:creator>
    <dc:date>2013-10-07T22:19:03Z</dc:date>
    <item>
      <title>Set Analysis &amp; intersection (*=)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-intersection/m-p/522888#M195360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help understanding what I've done and hopefully some direction on a better way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table with a drill down group as the dimension. The fields in the drill down are Country - Segment - Business Name. (In our CRM, Segment is equivalent to Territory) I need to count the covered business and used: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;= Count({&amp;lt;[Segment.Name] = {"**"}&amp;gt;} Distinct [Business.Key])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;to count businesses with a Segment assigned. It works like a charm until I drill down to the actual segment. At that point, it doesn't filter to the actual segment. So, If I filter to Australia - 'Australia Segment 1', all of the Australia businesses are still returned in the table. (Instead of only Austrailia Segment 1, I get all segmented businesses in Australia) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; If I change the expression to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;= Count({&amp;lt;[Segment.Name] &lt;STRONG&gt;*&lt;/STRONG&gt;= {"**"}&amp;gt;} Distinct [Business.Key])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;everything works as expected and I only get business from the segment that I've filtered to.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I guess my question is with the {"**"} ... I thought that meant count [Business.Key] if it has a segment. But I expected that it would still filter without the intersection set analysis. Any help would be much appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Mike&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;www.fortunecookiebi.com&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 20:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-intersection/m-p/522888#M195360</guid>
      <dc:creator>mikecrengland</dc:creator>
      <dc:date>2013-10-07T20:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis &amp; intersection (*=)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-intersection/m-p/522889#M195361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default behaviour with Set Analysis is that you provide a selection to override the selection that is made in the UI.&amp;nbsp; This can be really useful - but can lead to results that can be counter intuitive to users.&amp;nbsp; By using the intersection code (*=) you don't override the selections made by the user - you further limit what they have selected to what the Set Analysis dictates.&amp;nbsp; Generally this is a much better thing to be doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*= is a not particularly well documented feature of Set Analysis - but it is often the most useful way of doing things.&amp;nbsp; Unfortunately, syntax highlighting is not properly aware of the syntax - and often highlights expressions in red when you try to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 21:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-intersection/m-p/522889#M195361</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2013-10-07T21:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis &amp; intersection (*=)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-intersection/m-p/522890#M195362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Steve!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question around the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{"**"} modifier... Is that the right way to do 'not null'?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 22:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-intersection/m-p/522890#M195362</guid>
      <dc:creator>mikecrengland</dc:creator>
      <dc:date>2013-10-07T22:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis &amp; intersection (*=)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-intersection/m-p/522891#M195363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is indeed, except you should only need the one *.&amp;nbsp; If this is a field you use for selections a lot you might want to consider replacing the nulls out in the load script, eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(isnull(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Segment.Name]&lt;/SPAN&gt;), 'No Segment', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Segment.Name]&lt;/SPAN&gt;) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Segment.Name]&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means you can code for it and select it (or exclude it) more easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.quickintelligence.co.uk/"&gt;http://www.quickintelligence.co.uk/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 08:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-intersection/m-p/522891#M195363</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2013-10-08T08:05:12Z</dc:date>
    </item>
  </channel>
</rss>

