<?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 modifier problem using &amp;quot;&amp;gt;x&amp;lt;=y&amp;quot; in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/set-modifier-problem-using-quot-gt-x-lt-y-quot/m-p/1274698#M26314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I believe Gysbert is again right, there was a similar discussion few days ago.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/247029"&gt;Greater than and less than&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2017 18:22:25 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-02-01T18:22:25Z</dc:date>
    <item>
      <title>set modifier problem using "&gt;x&lt;=y"</title>
      <link>https://community.qlik.com/t5/App-Development/set-modifier-problem-using-quot-gt-x-lt-y-quot/m-p/1274696#M26312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using set analyis to select a range of numbers in a column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. with the data:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="149" style="border: 1px solid #000000; width: 162px; height: 98px;" width="160"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;dimension&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;measure&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sum(measure)&lt;/SPAN&gt; = &lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sum({$&amp;lt;dimension={"&amp;gt;2"}&amp;gt;}measure)&lt;/SPAN&gt; = &lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sum({$&amp;lt;dimension={"&amp;gt;2&amp;lt;=4"}&amp;gt;}measure)&lt;/SPAN&gt; = &lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... so far so good ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am finding that &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sum({$&amp;lt;dimension={"&amp;gt;5&amp;lt;=5"}&amp;gt;}measure)&lt;/SPAN&gt; returns &lt;STRONG&gt;5, not 0&lt;/STRONG&gt;, which doesn't make any sense to me logically.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sum({$&amp;lt;dimension={"&amp;gt;5"}*{"&amp;lt;=5"}&amp;gt;}measure)&lt;/SPAN&gt; returns &lt;STRONG&gt;0&lt;/STRONG&gt; as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Before considering this bug territory I wanted to check whether anyone has encountered this before? Am I missing something obvious here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I see the same behaviour in both Qlik Sense and Qlik View&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dominic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 16:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-modifier-problem-using-quot-gt-x-lt-y-quot/m-p/1274696#M26312</guid>
      <dc:creator>dominicmander</dc:creator>
      <dc:date>2017-02-01T16:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: set modifier problem using "&gt;x&lt;=y"</title>
      <link>https://community.qlik.com/t5/App-Development/set-modifier-problem-using-quot-gt-x-lt-y-quot/m-p/1274697#M26313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably a case where an AND is turned into an OR because the AND doesn't return anything. If you use&amp;nbsp; &amp;lt;=3&amp;gt;=5 you'll get everything that's not between 3 and 5. That's because an OR would give you and empty set. If you use &amp;gt;=3&amp;lt;=5 an AND is used because otherwise you get an empty set. So, my guess is that &amp;gt;5&amp;lt;=5 also uses an OR because and AND will give you an empty set. And if you want to be silly and actually want an empty set you should do what you did in your last expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 17:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-modifier-problem-using-quot-gt-x-lt-y-quot/m-p/1274697#M26313</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2017-02-01T17:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: set modifier problem using "&gt;x&lt;=y"</title>
      <link>https://community.qlik.com/t5/App-Development/set-modifier-problem-using-quot-gt-x-lt-y-quot/m-p/1274698#M26314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I believe Gysbert is again right, there was a similar discussion few days ago.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/247029"&gt;Greater than and less than&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 18:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-modifier-problem-using-quot-gt-x-lt-y-quot/m-p/1274698#M26314</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-02-01T18:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: set modifier problem using "&gt;x&lt;=y"</title>
      <link>https://community.qlik.com/t5/App-Development/set-modifier-problem-using-quot-gt-x-lt-y-quot/m-p/1274699#M26315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I guess I can understand that though it feels a bit arbitrary and inconsistent to reverse operator depending on whether a result is returned or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use case here is that I want to create set modifiers for year-to-date and year-to-go ... If you select the final period of the year then the year-to-go set modifier should indeed return an empty set, because year-to-date = full year. Not sure that's silly but maybe there's a better way to achieve this than my suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 08:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-modifier-problem-using-quot-gt-x-lt-y-quot/m-p/1274699#M26315</guid>
      <dc:creator>dominicmander</dc:creator>
      <dc:date>2017-02-03T08:40:56Z</dc:date>
    </item>
  </channel>
</rss>

