<?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: [SR10] Questions / remarks / bug on Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SR10-Questions-remarks-bug-on-Set-Analysis/m-p/261410#M496608</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;Please elaborate more on the following points that you have explained already,I found it&amp;nbsp; little bit&amp;nbsp; confusing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-c" start="1"&gt;&lt;LI&gt;&amp;gt;4&amp;lt;2&amp;nbsp; &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt; Will return 1 and 5, but &lt;/P&gt;&lt;OL class="dp-c" start="1"&gt;&lt;LI&gt;&amp;gt;5&amp;lt;1&amp;nbsp; &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will return all possible values (as if you did no selection or &amp;gt;A&amp;lt;B, for example) because no value is possible between 5 and 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2014 06:08:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-30T06:08:50Z</dc:date>
    <item>
      <title>[SR10] Questions / remarks / bug on Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/SR10-Questions-remarks-bug-on-Set-Analysis/m-p/261407#M496604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some questions / remarks (maybe bug) on Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) Empty Set&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to documentation, the empty set ( field = {} ) should select the data for which no value is defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to apply it on null but without success. I know how to select null values, but does someone have an example of empty set use ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) Use tilde for minus operande&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to documentation, ~field = {....} should be equal to field -= {....} and field = field - {....}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the whole set analysis is ignored if I try to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation says "&lt;EM&gt;Finally, for fields in and-mode, there is also the possibility of forced exclusion. If you want to force exclusion of specific field values, you will need to use “~” in front of the field name.&lt;/EM&gt;", but what is "and-mode" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3) Use # in Set Analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the difference between&lt;/P&gt;&lt;P&gt;field = {$(vChoice)}&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;field = {$(#vChoice)}&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we use # for a specific syntax / fonctionnality ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4) Strange behaviour in sub set analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This part is more complex than the others. I have 2 unexpected behaviours with Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First is an issue with the empty set (again). If I write &lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;sum({$&amp;lt;id={"&amp;gt;=2&amp;lt;=1"}&amp;gt;}value)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;I guess that I will have no row, but I have all the rows, as if the whole Set Analysis was ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I write my set like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;sum({$&amp;lt;id={"&amp;gt;=2"}*{"&amp;lt;=1"}&amp;gt;}value)&lt;/PRE&gt;&lt;P&gt; it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second issue is very complex. It seems that, in a specific case, when there is a sub set, the $ sign is not considered and the sub set works as if there is a 1 in the set. The detail is in the attached application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 10:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SR10-Questions-remarks-bug-on-Set-Analysis/m-p/261407#M496604</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-01-10T10:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: [SR10] Questions / remarks / bug on Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/SR10-Questions-remarks-bug-on-Set-Analysis/m-p/261408#M496606</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;Unfortunately, I cannot open your application right now, but anyway I'd try to answer your questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.- Never used it. Probably the QlikTech documentation guys need to elaborate the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.- "And" fields are documented, and very unsual as far as I'm concerned. Check Reference Manual, Book III, Appendix, D.4 "QlikView Logic" on how to build these fields and what they are for. In any case, ~Field1 is &lt;EM&gt;not&lt;/EM&gt; equal to Field2 -= {Value}. Field1 is an AND MODE field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.- The pound sign forces to return a numeric value for the expression evaluated, if possible. If the variable already does that, you needn't specify the pound. Think of dates (dates are dual in QlikView, and although they are displayed as a literal, they have a numeric value):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;$(=Date('31/12/2012'))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will return 31 divided into 12 divided into 2012 (so 0,00000... something), because the expansion returns a evaluable expression (31/12/2012). If you do want the numeric value of the date then you need to specify it, because you don't want to evaluate the result, just the value of the Date() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;$(#=&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;Date('31/12/2012'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will return 41274 which is a correct numeric value for that date in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But $(=2010) and $(#=2010) will return the numeric value 2010, so the "#" has no effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.- It may sound strange, but there are no records between 2 and 1 in QlikView. QlikView does not go backwards (in that case, that would make sense). That's why you need to use two set modifiers instead of one. But there may be records between 1 and 2 (called a range) and in this case you don't need to add another set modifier. Indeed, the set analysis is ignored because the selection returned by the set is not possible. Think of a field that stores values 1, 2, 3, 4 and 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&amp;gt;4&amp;lt;2&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will return 1 and 5, but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&amp;gt;5&amp;lt;1&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will return all possible values (as if you did no selection or &amp;gt;A&amp;lt;B, for example) because no value is possible between 5 and 1. Try these selections using a simple inline table and a listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all this that makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 12:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SR10-Questions-remarks-bug-on-Set-Analysis/m-p/261408#M496606</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-10T12:15:16Z</dc:date>
    </item>
    <item>
      <title>[SR10] Questions / remarks / bug on Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/SR10-Questions-remarks-bug-on-Set-Analysis/m-p/261409#M496607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks for the 3 first points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the fourth, as I have guessed:&lt;/P&gt;&lt;P&gt;if the set analysis is a range (eg &lt;STRONG&gt;(&amp;gt;1&amp;lt;4)&lt;/STRONG&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if it's a valid range, where &lt;STRONG&gt;min &amp;lt; max&lt;/STRONG&gt; (eg &lt;STRONG&gt;(&amp;gt;1&amp;lt;4)&lt;/STRONG&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; it select the values in the range, and no value if there is no values in this range&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if the range is not valid, for example &lt;STRONG&gt;min &amp;gt; max&lt;/STRONG&gt; (eg &lt;STRONG&gt;(&amp;lt;1&amp;gt;4)&lt;/STRONG&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; each modifier is avaluated separately and if there is values &amp;lt; min or &amp;gt; max&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; it select the values that answer each modifier separately. So &lt;STRONG&gt;(&amp;lt;1&amp;gt;4)&lt;/STRONG&gt; is equivalent to &lt;STRONG&gt;("&amp;gt;1")+("&amp;lt;4")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; all possible values are returned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a bit shocked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can open my application for the last case, I think there is a strange behaviour inside too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot anyway, you are a bible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 13:00:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SR10-Questions-remarks-bug-on-Set-Analysis/m-p/261409#M496607</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-01-10T13:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: [SR10] Questions / remarks / bug on Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/SR10-Questions-remarks-bug-on-Set-Analysis/m-p/261410#M496608</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;Please elaborate more on the following points that you have explained already,I found it&amp;nbsp; little bit&amp;nbsp; confusing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-c" start="1"&gt;&lt;LI&gt;&amp;gt;4&amp;lt;2&amp;nbsp; &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt; Will return 1 and 5, but &lt;/P&gt;&lt;OL class="dp-c" start="1"&gt;&lt;LI&gt;&amp;gt;5&amp;lt;1&amp;nbsp; &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will return all possible values (as if you did no selection or &amp;gt;A&amp;lt;B, for example) because no value is possible between 5 and 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 06:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SR10-Questions-remarks-bug-on-Set-Analysis/m-p/261410#M496608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-30T06:08:50Z</dc:date>
    </item>
  </channel>
</rss>

