<?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 and excluding selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327691#M581706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;PictureBox wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...Always thought (did not try it out!!!) that the 1 will always take total set without regard ... &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;1 means you're STARTING with the total set of all data, ignoring all selections.&amp;nbsp; However, you can then modify that set as desired by adding additional restrictions in the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2011 17:16:24 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-11-18T17:16:24Z</dc:date>
    <item>
      <title>Set Analysis and excluding selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327685#M581698</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 am using the expression (here simplified) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( { $ &amp;lt;WeekIndex = {1}, CW= , StoreNumber=&amp;gt;} UnitMovement) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works as designed i.e. it gets me the sum of UnitMovement for Weekindex = 1 out of 106 Weeks, and it ignores if a user has selected anything on the fields CW or StoreNumber . But if the user has selected anything else over another field that will not be ignored with the above statement. How can I get QV to ignore ALL selection other than the WeekIndex=1 (this may sometimes also be a range 1-10 or 12-50 or whatever. Meaning I need to flexible to give the WeekIndex, but ignore all other selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use {1} I get the total set incl. WeekIndex from 1 to 106, which is not what I want either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, this is still QV9 SR7 but should be the same for 11 I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Petra &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 17:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327685#M581698</guid>
      <dc:creator>picturebox</dc:creator>
      <dc:date>2011-11-17T17:15:45Z</dc:date>
    </item>
    <item>
      <title>Set Analysis and excluding selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327686#M581699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I don't see why the following wouldn't work it removes the current selection then you select weekened back to 1, do you have an example file, might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( { 1 &amp;lt;WeekIndex = {1}, CW= , StoreNumber=&amp;gt;} UnitMovement) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 17:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327686#M581699</guid>
      <dc:creator>RedSky001</dc:creator>
      <dc:date>2011-11-17T17:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and excluding selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327687#M581700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be good enough.&amp;nbsp; However, other selections DO affect what is possible in WeekIndex.&amp;nbsp; So it ignores them directly, but includes them indirectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum({1&amp;lt;WeekIndex=P()&amp;gt;} UnitMovement)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a better solution if that's not good enough. It properly ignores everything, even their indirect effects.&amp;nbsp; It ONLY cares about selections in WeekIndex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum({&amp;lt;$(=concat({&amp;lt;$Field-={'WeekIndex'}&amp;gt;} '[' &amp;amp; $Field &amp;amp; ']=',','))&amp;gt;} UnitMovement)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 21:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327687#M581700</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-17T21:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and excluding selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327688#M581701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you both for the input. Always thought (did not try it out!!!) that the 1 will always take total set without regard ... for my purpose the simpler first solution will work fine since the user will not be accessing the field WeekIndex. The more compley one I will be using to be able to include some and exclude some selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for making me just a little bit wiser once again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 14:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327688#M581701</guid>
      <dc:creator>picturebox</dc:creator>
      <dc:date>2011-11-18T14:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and excluding selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327689#M581702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&amp;nbsp; &lt;/P&gt;&lt;P&gt;I wonder how the WeekIndex can be included indirectly. Can you elaborate perhaps?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Petra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 14:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327689#M581702</guid>
      <dc:creator>picturebox</dc:creator>
      <dc:date>2011-11-18T14:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and excluding selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327690#M581703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;PictureBox wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John,&amp;nbsp; &lt;/P&gt;&lt;P&gt;I wonder how the WeekIndex can be included indirectly. Can you elaborate perhaps?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Petra&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached example, we're trying to ONLY pay attention to Customer selections, while ignoring selections in all other fields.&amp;nbsp; The four straight tables show four different solutions.&amp;nbsp; The second straight table shows the {1&amp;lt;Customer=P()&amp;gt;} approach.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Select Apple for Product.&amp;nbsp; Note that the count in the second chart has gone down from 6 to 5.&amp;nbsp; This happens because although we've selected nothing in the Customer field, only Ann and Bob purchased Apples, so only those two customers are possible.&amp;nbsp; P() is restricting us to possible customers, even if we haven't made any customer selections.&amp;nbsp; So although we're ignoring the Product selection directly (or the count would be 2), we ARE paying attention to it indirectly, in the sense of how it constrains our possible customer values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That may well be a very useful feature in many cases, just not in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 17:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327690#M581703</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-18T17:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and excluding selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327691#M581706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;PictureBox wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...Always thought (did not try it out!!!) that the 1 will always take total set without regard ... &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;1 means you're STARTING with the total set of all data, ignoring all selections.&amp;nbsp; However, you can then modify that set as desired by adding additional restrictions in the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 17:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-excluding-selection/m-p/327691#M581706</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-18T17:16:24Z</dc:date>
    </item>
  </channel>
</rss>

