<?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 question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157088#M504547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shumail that worked thanks, although had to change the &amp;gt;2009 to 2009.&lt;/P&gt;&lt;P&gt;I have just realised that i also need to add in ActivityText = 'CANCEL INSTRUCTION'&lt;/P&gt;&lt;P&gt;Where would i add that in?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2009 22:39:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-18T22:39:42Z</dc:date>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157081#M504540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am very novice to this and I think set analysis will do what i need.&lt;/P&gt;&lt;P&gt;I am using the following expression;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Policy Status] = {'Cancelled'}&amp;gt;} [PolicyID])&lt;/P&gt;&lt;P&gt;Now this works fine for a simple count, however in the table i have 2 seperate date fields, one is a cancellation date and the other is a quoted date, if i just choose the cancellation month it gives the right data, if i also choose a quotation month then it alters the cancellation figure, i want to show the values independantly and not have one interfere with the other as it usually does with any linked tables.&lt;/P&gt;&lt;P&gt;I hope this makes sense&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 20:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157081#M504540</guid>
      <dc:creator />
      <dc:date>2009-11-18T20:38:32Z</dc:date>
    </item>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157082#M504541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case you should do something like&lt;/P&gt;&lt;P&gt;Count({1 &amp;lt;[Policy Status] = {'Cancelled'}&amp;gt;} [PolicyID])&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 20:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157082#M504541</guid>
      <dc:creator />
      <dc:date>2009-11-18T20:48:03Z</dc:date>
    </item>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157083#M504542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Graham,&lt;/P&gt;&lt;P&gt;Did u try using $ set analysis? may it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Count({$&amp;lt;[Policy Status] = {'Cancelled'}&amp;gt;} [PolicyID])&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Shumail Hussain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 20:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157083#M504542</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-11-18T20:52:54Z</dc:date>
    </item>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157084#M504543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried both $ and 1, the problem comes that if i choose 1 then every cancellation ever shows, if i choose $ then just the selected year works, but when using $ if i choose another input field then it alters this field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 21:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157084#M504543</guid>
      <dc:creator />
      <dc:date>2009-11-18T21:17:33Z</dc:date>
    </item>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157085#M504544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to ignore the Quotation Month selection, try this:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Count({&amp;lt;[Policy Status] = {'Cancelled'}, [Quotation Month]=&amp;gt;} [PolicyID])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 21:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157085#M504544</guid>
      <dc:creator />
      <dc:date>2009-11-18T21:42:11Z</dc:date>
    </item>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157086#M504545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats great, thanks so much for the help it works a treat.&lt;/P&gt;&lt;P&gt;Now i have this problem;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;Count({&amp;lt;ActivityEffectedYear&lt;/B&gt; = {2009}&amp;gt;} &lt;B&gt;[Beneficiary Status]&lt;/B&gt; = 'Cancelled',&lt;B&gt;[BeneficiaryID]&lt;/B&gt;) &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully you can see what i am trying to do, i want to count the beneficiaryID when the beneficiary status is Cancelled and the activity effected year is &amp;gt; 2009. I think i have missed something obvious.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 21:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157086#M504545</guid>
      <dc:creator />
      <dc:date>2009-11-18T21:50:24Z</dc:date>
    </item>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157087#M504546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;count({$&amp;lt;ActivityEffectedYear= {"&amp;gt;2009"}, [Beneficiary Status] = {"Cancelled"}&amp;gt;} [BeneficiaryID])&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;BR /&gt;Shumail Hussain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 21:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157087#M504546</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-11-18T21:58:24Z</dc:date>
    </item>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157088#M504547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shumail that worked thanks, although had to change the &amp;gt;2009 to 2009.&lt;/P&gt;&lt;P&gt;I have just realised that i also need to add in ActivityText = 'CANCEL INSTRUCTION'&lt;/P&gt;&lt;P&gt;Where would i add that in?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 22:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157088#M504547</guid>
      <dc:creator />
      <dc:date>2009-11-18T22:39:42Z</dc:date>
    </item>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157089#M504548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Shumail Hussain wrote:&lt;BR /&gt;Hi Graham,&lt;BR /&gt;Did u try using $ set analysis? may it works.&lt;BR /&gt; &amp;lt;blockquote&amp;gt;&lt;BR /&gt; Count({$&amp;lt;[Policy Status] = {'Cancelled'}&amp;gt;} [PolicyID]) &amp;lt;/blockquote&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shumail Hussain&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;Just a quick note - the $ is optional in this expression, and is the default behavior. So this expression will behave exactly the same and return exactly the same result with or without the $. &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 02:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157089#M504548</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-11-19T02:51:12Z</dc:date>
    </item>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157090#M504549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;grahamwarwick wrote:Shumail that worked thanks, although had to change the &amp;gt;2009 to 2009.&lt;BR /&gt;I have just realised that i also need to add in ActivityText = 'CANCEL INSTRUCTION'&lt;BR /&gt;Where would i add that in?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="padding-left:30px;"&gt;count({&amp;lt;[ActivityEffectedYear] = {'$(=year(today()))'}&lt;BR /&gt; ,[Beneficiary Status] = {'Cancelled'}&lt;BR /&gt; ,[ActivityText] = {'Cancel Instruction'}&lt;BR /&gt; &amp;gt;} [BeneficiaryID])&lt;/P&gt;&lt;P&gt;You specified that you wanted &amp;gt;2009, so that's why Shumail did it that way. In any case, I wouldn't hard code values like 2009 into a real application unless you REALLY want 2009, no matter what year it currently is. I suspect that what you really want is the current year, whatever that year might be. The above should handle that.&lt;/P&gt;&lt;P&gt;I also I changed the double quotes to single quotes in the Beneficiary Status. You'll get the same result either way, but double quotes specify a search string. So you would have QlikView first search for all Beneficiary Statuses matching the search string "Cancelled". Only one can match, so it will find it and select it. Single quotes specify a literal, which SHOULD (untested, and based soley on basic design experience) short cut this process and therefore execute more quickly. In practice, I can't image how you would ever detect a difference. Still, I think it's helpful to understand the difference between literals and search strings, and to be explicit in the code about which is which.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 03:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/157090#M504549</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-11-19T03:01:19Z</dc:date>
    </item>
  </channel>
</rss>

