<?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: exclude selections on a single field only in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527726#M690673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestions - I've got round it like this:&lt;/P&gt;&lt;P&gt;if(count([STU_CODE])&amp;gt;0,count( {1&amp;lt;[AYR_BEGY] = {$(=Only([AYR_BEGY])-1)}&amp;gt;} [STU_CODE] ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it only provides the statistic where the course is present in the current selection, but maintains any selections applied to other fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2013 08:13:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-11T08:13:10Z</dc:date>
    <item>
      <title>Set Analysis: exclude selections on a single field only</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527719#M690666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm putting together a profile of various course-level student statistics, which requires the selection of a single 'acacdemic year', and allows for optional selection across other data fields (e.g. subject, level of study, location of study). The table therefore displays a set of statistics for a single acacdemic year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I also want to do is to draw in a couple of statistics for the previous academic year, whilst maintaining any of the optional selections that a user might make.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment I've got as far as this:&lt;/P&gt;&lt;P&gt;count( {1&amp;lt;[AYR_BEGY] = {$(=Only([AYR_BEGY])-1)}&amp;gt;} [STU_CODE] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine until (as expected) I make another selection on one of the optional fields (e.g. subject) because it continues to always show the full set of data for the previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of altering the statement such that it only ignores selections on the AYR_BEGY field but takes into account all other selections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 14:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527719#M690666</guid>
      <dc:creator />
      <dc:date>2013-10-08T14:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: exclude selections on a single field only</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527720#M690667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; have you tried to replace the 1 with $ ?&lt;/P&gt;&lt;P&gt;count( {$&amp;lt;[AYR_BEGY] = {$(=Only([AYR_BEGY])-1)}&amp;gt;} [STU_CODE] )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 14:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527720#M690667</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2013-10-08T14:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: exclude selections on a single field only</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527721#M690668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count( {&amp;lt;[AYR_BEGY] = }&amp;gt;} [STU_CODE] )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 14:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527721#M690668</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-08T14:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: exclude selections on a single field only</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527722#M690669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I have understood you correctly, but to ignore selections in AYR_BEGY while respecting all others, just use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;[AYR_BEGY]=&amp;gt;} [STU_CODE])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 14:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527722#M690669</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-10-08T14:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: exclude selections on a single field only</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527723#M690670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;you wrote: Is there a way of altering the statement such that it only ignores selections on the AYR_BEGY field but takes into account all other selections?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;then try below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=count({&amp;lt;[AYR_BEGY] = {$(=Only([AYR_BEGY])-1)}&amp;gt;} [STU_CODE] )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 14:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527723#M690670</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-10-08T14:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: exclude selections on a single field only</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527724#M690671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I wasn't very clear - I need it to take account of the selection in AYR_BEGY (the selected year), because it needs to return the results for [AYR_BEGY]-1 (the previous year), but by having the '1' at the front of the set analysis statement it then also ignores the selections applied to any other fields, which I don't want it to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the $ instead of (or missing out) the 1 returns zero for [AYR_BEGY]-1 because the selection is restricted to [AYR_BEGY] only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reponses though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 14:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527724#M690671</guid>
      <dc:creator />
      <dc:date>2013-10-08T14:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: exclude selections on a single field only</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527725#M690672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=count({&amp;lt;[AYR_BEGY] = {$(=Max([AYR_BEGY])-1)}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FirstField&lt;/SPAN&gt;= , SecondField=, Third= &amp;gt;} [STU_CODE] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Replace &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FirstField&lt;/SPAN&gt;, SecondField and Third with your Fields, in which you dont want selections..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;hope it helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 14:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527725#M690672</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-10-08T14:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: exclude selections on a single field only</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527726#M690673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestions - I've got round it like this:&lt;/P&gt;&lt;P&gt;if(count([STU_CODE])&amp;gt;0,count( {1&amp;lt;[AYR_BEGY] = {$(=Only([AYR_BEGY])-1)}&amp;gt;} [STU_CODE] ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it only provides the statistic where the course is present in the current selection, but maintains any selections applied to other fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 08:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-selections-on-a-single-field-only/m-p/527726#M690673</guid>
      <dc:creator />
      <dc:date>2013-10-11T08:13:10Z</dc:date>
    </item>
  </channel>
</rss>

