<?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 expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cumulative-expressions/m-p/842801#M296163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Mr. Singh for you help but I found the answer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.222222328186035px; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;sum({&amp;lt;Year={'2015'}&amp;gt;}[Units sold]) :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;this is the expression for period it means that if you select 1 month it will give you only the number of units sold in that month.&lt;/P&gt;&lt;P&gt;But if you use this expression bellow , if you select one month it will give you the sum of units sold in that month plus the amount of previous months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({1&amp;lt;Year={$(#=ONLY(Year))},Month={"&amp;lt;=$(=MAX(Month))"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 12.222222328186035px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;Year={'2015'}&amp;gt;}[Units sold])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ,Artikel,Year,Month))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2015 12:17:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-14T12:17:43Z</dc:date>
    <item>
      <title>Cumulative expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-expressions/m-p/842797#M296159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hello everyone! I hope you are okay all of you!&lt;/P&gt;&lt;P&gt;and I need your help. I have a dashboard with expressions like sum({&amp;lt;Year={'2015'}&amp;gt;}[Units sold]) and &lt;/P&gt;&lt;P&gt;I need to do a cumulative version of those expressions please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Ab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-expressions/m-p/842797#M296159</guid>
      <dc:creator />
      <dc:date>2015-05-12T12:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-expressions/m-p/842798#M296160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain a bit more about "Cumulative version", what you mean by it? An example will be great if added.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-expressions/m-p/842798#M296160</guid>
      <dc:creator />
      <dc:date>2015-05-12T12:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-expressions/m-p/842799#M296161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have an expression like this: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.222222328186035px;"&gt;sum({&amp;lt;Year={'2015'}&amp;gt;}[Units sold])&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;and a list box of months, when you do select 01 or January the expression give you the number of units sold in January. if you do select April or 04 it gives you number of units sold in April, But in Cumulative when you do select April it gives you the number of units sold from January to April &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-expressions/m-p/842799#M296161</guid>
      <dc:creator />
      <dc:date>2015-05-12T12:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-expressions/m-p/842800#M296162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case you can use below 2 ways:&lt;/P&gt;&lt;P&gt;1) Add MonthNum as a field and use that in set analysis. Get the current selected MonthNum into a variable and then use like&lt;/P&gt;&lt;P&gt;MonthNum = {"&amp;gt;=1&amp;lt;=vMonthSelected"}&lt;/P&gt;&lt;P&gt;2) If you have a Date field on which the Calendar is created, then you can take the MonthEnd date of current selected Month into a variable and for starting you can either use a hardcoded date or&amp;nbsp; use YearStart function : then use like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateField = {"&amp;gt;=vStartDate&amp;lt;=vEndDate"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can search the threads with Rolling Months and will find plenty of info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-expressions/m-p/842800#M296162</guid>
      <dc:creator />
      <dc:date>2015-05-12T12:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-expressions/m-p/842801#M296163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Mr. Singh for you help but I found the answer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.222222328186035px; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;sum({&amp;lt;Year={'2015'}&amp;gt;}[Units sold]) :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;this is the expression for period it means that if you select 1 month it will give you only the number of units sold in that month.&lt;/P&gt;&lt;P&gt;But if you use this expression bellow , if you select one month it will give you the sum of units sold in that month plus the amount of previous months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({1&amp;lt;Year={$(#=ONLY(Year))},Month={"&amp;lt;=$(=MAX(Month))"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 12.222222328186035px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;Year={'2015'}&amp;gt;}[Units sold])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ,Artikel,Year,Month))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 12:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-expressions/m-p/842801#M296163</guid>
      <dc:creator />
      <dc:date>2015-05-14T12:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-expressions/m-p/842802#M296164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;thank you Mr. Singh for you help but I found the answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sum({&amp;lt;Year={'2015'}&amp;gt;}[Units sold]) :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;this is the expression for period it means that if you select 1 month it will give you only the number of units sold in that month.&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;But if you use this expression bellow , if you select one month it will give you the sum of units sold in that month plus the amount of previous months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=sum({1&amp;lt;Year={$(#=ONLY(Year))},Month={"&amp;lt;=$(=MAX(Month))"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit;"&gt;sum({&amp;lt;Year={'2015'}&amp;gt;}[Units sold])&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; ,Artikel,Year,Month))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 12:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-expressions/m-p/842802#M296164</guid>
      <dc:creator />
      <dc:date>2015-05-14T12:18:51Z</dc:date>
    </item>
  </channel>
</rss>

