<?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: Cumulative Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cumulative-Expression/m-p/378227#M141053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That sounds like it will work.&amp;nbsp; But how to do a set a variable?&amp;nbsp; Do I put it in my Expression script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Aug 2012 12:42:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-21T12:42:21Z</dc:date>
    <item>
      <title>Cumulative Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Expression/m-p/378223#M141049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a Cumulative expression, let's call it "Cumulative This Year".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my Sheet, I have a list box titled "Month", that list the 12 months of the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of my field "Cumulative This Year" adding all of the data for for the current year, I want it to stop at the month selected in the List box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If June is selected as the Month, "Cumulative This Year" will consist data from January - June.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the follwing in my expression.&amp;nbsp; Is there a way to adjust the ''Month" based on the value selected in the List box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DepletionYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"12"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"01"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"02"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"03"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"04"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Depletion&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your assistance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephanie Smith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 18:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Expression/m-p/378223#M141049</guid>
      <dc:creator />
      <dc:date>2012-08-15T18:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Expression/m-p/378224#M141050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stephanie, Should the application take the max month on selecting multiple months in the list box?&amp;nbsp; &lt;/P&gt;&lt;P&gt;For example, on selecting May, October and November, should it take January through November? Please confirm. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 18:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Expression/m-p/378224#M141050</guid>
      <dc:creator>manojkvrajan</dc:creator>
      <dc:date>2012-08-15T18:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Expression/m-p/378225#M141051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is exactly what I am looking for&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 12:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Expression/m-p/378225#M141051</guid>
      <dc:creator />
      <dc:date>2012-08-21T12:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Expression/m-p/378226#M141052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephanie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set a variable vMonth = Month&lt;/P&gt;&lt;P&gt;then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DepletionYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"12"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(vMonth)&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Depletion&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 12:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Expression/m-p/378226#M141052</guid>
      <dc:creator>daveamz</dc:creator>
      <dc:date>2012-08-21T12:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Expression/m-p/378227#M141053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That sounds like it will work.&amp;nbsp; But how to do a set a variable?&amp;nbsp; Do I put it in my Expression script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 12:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Expression/m-p/378227#M141053</guid>
      <dc:creator />
      <dc:date>2012-08-21T12:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Expression/m-p/378228#M141054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Settings &amp;gt; Variable Overview (Ctrl+Alt+V) &amp;gt; Add &amp;gt; vMonth for variable name, =Month for Definition. Equal sign is mandatory.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/20445_Untitled.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 12:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Expression/m-p/378228#M141054</guid>
      <dc:creator>daveamz</dc:creator>
      <dc:date>2012-08-21T12:56:21Z</dc:date>
    </item>
  </channel>
</rss>

