<?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: Help with &amp;lt;= &amp;gt;= syntax please in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-lt-gt-syntax-please/m-p/558027#M1144444</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;P&gt;=sum(aggr(DISTINCT If(Sum({&amp;lt;[Year]={$(vCurrentYear)}&amp;gt;} [Hours Worked]*if(IsNull(Rate), 20, Rate))&amp;gt;=1000 AND Sum({&amp;lt;[Year]={$(vCurrentYear)}&amp;gt;} [Hours Worked]*if(IsNull(Rate), 20, Rate))&amp;lt;=2000, 1, 0),[Billing code]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Aug 2013 10:44:46 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-08-05T10:44:46Z</dc:date>
    <item>
      <title>Help with &lt;= &gt;= syntax please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-lt-gt-syntax-please/m-p/558026#M1144443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="p1"&gt;Hi,&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;The following works well:&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;=&lt;SPAN class="s1"&gt;sum&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;If&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;Sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN class="s2"&gt;[Year]&lt;/SPAN&gt;={&lt;SPAN class="s3"&gt;&lt;EM&gt;$(vCurrentYear)&lt;/EM&gt;&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN class="s2"&gt;[Hours Worked]&lt;/SPAN&gt;*&lt;SPAN class="s1"&gt;if&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;IsNull&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;Rate&lt;/SPAN&gt;), 20, &lt;SPAN class="s2"&gt;Rate&lt;/SPAN&gt;))&lt;STRONG&gt;&amp;gt;=1000&lt;/STRONG&gt;, 1, 0),&lt;SPAN class="s2"&gt;[Billing code]&lt;/SPAN&gt;)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where I'm effectively counting the number of Billing Codes this year that have more than £1000 worth of time recorded against them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I'd like to do, but can't figure out the syntax is to count the number of Billing Codes between two values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, instead of greater than or equal to 1000 (as above) I want to do something like &amp;gt;=1000 &amp;lt;=2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&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, 05 Aug 2013 10:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-lt-gt-syntax-please/m-p/558026#M1144443</guid>
      <dc:creator />
      <dc:date>2013-08-05T10:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with &lt;= &gt;= syntax please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-lt-gt-syntax-please/m-p/558027#M1144444</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;P&gt;=sum(aggr(DISTINCT If(Sum({&amp;lt;[Year]={$(vCurrentYear)}&amp;gt;} [Hours Worked]*if(IsNull(Rate), 20, Rate))&amp;gt;=1000 AND Sum({&amp;lt;[Year]={$(vCurrentYear)}&amp;gt;} [Hours Worked]*if(IsNull(Rate), 20, Rate))&amp;lt;=2000, 1, 0),[Billing code]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 10:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-lt-gt-syntax-please/m-p/558027#M1144444</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-05T10:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with &lt;= &gt;= syntax please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-lt-gt-syntax-please/m-p/558028#M1144445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 10:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-lt-gt-syntax-please/m-p/558028#M1144445</guid>
      <dc:creator />
      <dc:date>2013-08-05T10:47:27Z</dc:date>
    </item>
  </channel>
</rss>

