<?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 how do i make this expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149263#M27461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;month={'&amp;gt;=$(=max(month)-3) &amp;lt;=$(=max(month)-1)'}&amp;gt;} value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jul 2009 03:15:11 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-07-14T03:15:11Z</dc:date>
    <item>
      <title>how do i make this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149262#M27460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;month,value&lt;/P&gt;&lt;P&gt;1,234&lt;/P&gt;&lt;P&gt;2,434&lt;/P&gt;&lt;P&gt;3,212&lt;/P&gt;&lt;P&gt;4,1004&lt;/P&gt;&lt;P&gt;5,4443&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a textbox i want the sum of all values .. but only the MAX(Month)-1 till MAX(Month-3) .. dynamic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 03:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149262#M27460</guid>
      <dc:creator />
      <dc:date>2009-07-14T03:10:09Z</dc:date>
    </item>
    <item>
      <title>how do i make this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149263#M27461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;month={'&amp;gt;=$(=max(month)-3) &amp;lt;=$(=max(month)-1)'}&amp;gt;} value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 03:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149263#M27461</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-07-14T03:15:11Z</dc:date>
    </item>
    <item>
      <title>how do i make this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149264#M27462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that gives me a 0 as result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 03:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149264#M27462</guid>
      <dc:creator />
      <dc:date>2009-07-14T03:21:46Z</dc:date>
    </item>
    <item>
      <title>how do i make this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149265#M27463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seemed to work for me, I got 1,650.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 03:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149265#M27463</guid>
      <dc:creator />
      <dc:date>2009-07-14T03:26:29Z</dc:date>
    </item>
    <item>
      <title>how do i make this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149266#M27464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your expression dont have colors .. when i copy/past the colors .. then i have colors in the expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 03:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149266#M27464</guid>
      <dc:creator />
      <dc:date>2009-07-14T03:32:19Z</dc:date>
    </item>
    <item>
      <title>how do i make this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149267#M27465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what version are you using? .. seems like 8.5 is working . 9.0 RC not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 03:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149267#M27465</guid>
      <dc:creator />
      <dc:date>2009-07-14T03:34:36Z</dc:date>
    </item>
    <item>
      <title>how do i make this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149268#M27466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, it might be a version problem. The expression I gave will only work in 8.5 or above. Below that, either of these should work:&lt;/P&gt;&lt;P&gt;=-sum((month&amp;gt;=$(=max(month)-3) and month&amp;lt;=$(=max(month)-1))*value)&lt;/P&gt;&lt;P&gt;=sum(if(month&amp;gt;=$(=max(month)-3) and month&amp;lt;=$(=max(month)-1),value))&lt;/P&gt;&lt;P&gt;The first should perform better, the second might be more clear.&lt;/P&gt;&lt;P&gt;(Edit: More specifically, the expression is working fine for me in versions 9.00.7119.4 and 8.50.6231.5. Those are the ones I can easily test.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 03:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149268#M27466</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-07-14T03:37:56Z</dc:date>
    </item>
    <item>
      <title>how do i make this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149269#M27467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What happens if Max(month) is equal to February?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 04:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149269#M27467</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2009-07-14T04:20:09Z</dc:date>
    </item>
    <item>
      <title>how do i make this expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149270#M27468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you'll get January only, which may or may not be what you wanted. It isn't clear from the original question. I've assumed this was an example question in search of an example answer, and not "here is my real application and my real data".&lt;/P&gt;&lt;P&gt;In a real application, that we're looking for a given month and three months previous to me implies that our month field should actually be a date instead of a mere month number, probably the first day of each month, just displayed with a year and month. We would then be doing the subtraction using addmonths(month,-1) for instance, and would have to format the result the same as our month is formatted. Something like this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;month={"&amp;gt;=$(=date(addmonths(max(month),-3),'MMM YYYY')) &amp;lt;=$(=date(addmonths(max(month),-1),'MMM YYYY'))"}&amp;gt;} value)&lt;/P&gt;&lt;P&gt;But since that wasn't the actual question, and doesn't solve the actual question posed, I figured I'd hold off on throwing that out there until I got a follow up question. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 05:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-make-this-expression/m-p/149270#M27468</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-07-14T05:20:49Z</dc:date>
    </item>
  </channel>
</rss>

