title: QlikSense Set analysis SUM expression with explicit less than and ignore selections
body: <p>I have an expression in QlikSense:</p>
  
  <pre><code>Sum({$&lt;YEAR=,YEAR= {$(=YEAR(TODAY())-1)},MONTH={$(=NUM(Month(today()),'#'))}&gt;}MOVES)
  </code></pre>
  
  <p>Which gives me the <code>SUM</code> of <code>MOVES</code> from <code>2018</code> (previous year) in <code>MONTH 6</code> (current month)</p>
  
  <p>What I want is the <code>SUM</code> of <code>MOVES</code> from <code>2018</code> (previous year) with <code>MONTH</code>'s <code>1</code> to <code>6</code> up to current month.</p>
  
  <p>I have tried adding <code>&lt;</code> to the expression in different places but it returns nothing:</p>
  
  <pre><code>Sum({$&lt;YEAR=,YEAR= {$(=YEAR(TODAY())-1)},MONTH&lt;={$(=NUM(Month(today()),'#'))}&gt;}MOVES)
  </code></pre>
  
  <p>&amp;</p>
  
  <pre><code>Sum({$&lt;YEAR=,YEAR= {$(=YEAR(TODAY())-1)},MONTH={$(&lt;=NUM(Month(today()),'#'))}&gt;}MOVES)
  </code></pre>
  
  <p>But they aren't returning anything.</p>