<?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: sum function with SetExpression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192667#M627825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the sample you have provided&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="100"&gt;DATE&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="133"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;OPENING_BALANCE&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/01/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;58.774&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/02/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;54.042&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/03/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;52.703&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/04/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;48.435&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/05/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;56.686&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/06/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;56.648&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/07/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;46.892&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/08/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;42.110&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/09/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;38.551&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/10/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;17.749&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the expected output you are looking for, this expression should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;DATE = {"$(=Date(Min(DATE), 'DD/MM/YYYY'))"}&amp;gt;} OPENING_BALANCE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No selection&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143063_Capture.PNG" style="height: 258px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mar-2016 selected&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/143064_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apr-2016, May-2016, Jun-2016&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/143065_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Nov 2016 16:31:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-11-06T16:31:32Z</dc:date>
    <item>
      <title>sum function with SetExpression</title>
      <link>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192659#M627814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;who can help me to understand the error?&lt;/P&gt;&lt;P&gt;it's a sum of the variable &lt;SPAN style="font-size: 13.3333px;"&gt;MSCONTOTAB.SALDO_INIZIALE for the first selected month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; MSCONTOTAB.MESEANNO_DEMISSIONE = MONTHNAME(min(&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&amp;lt;MSCONTOTAB.ANNO_DEMISSIONE ={"$(=$(vAnno))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; MSCONTOTAB.DEMISSIONE))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;gt;}MSCONTOTAB.SALDO_INIZIALE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM function does not recognize the variable &lt;SPAN style="font-size: 13.3333px;"&gt;MSCONTOTAB.SALDO_INIZIALE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks, eg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 13:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192659#M627814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-25T13:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: sum function with SetExpression</title>
      <link>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192660#M627815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure what you are trying to do, but may be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum({&amp;lt;MSCONTOTAB.MESEANNO_DEMISSIONE = {"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MSCONTOTAB.MESEANNO_DEMISSIONE = &lt;/SPAN&gt;MonthName(Min({&amp;lt;MSCONTOTAB.ANNO_DEMISSIONE ={'$(=$(vAnno))'}&amp;gt;} MSCONTOTAB.DEMISSIONE))"}&amp;gt;} MSCONTOTAB.SALDO_INIZIALE)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 16:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192660#M627815</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-25T16:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: sum function with SetExpression</title>
      <link>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192661#M627816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank Sunny T, your expression is correct &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 09:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192661#M627816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-31T09:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: sum function with SetExpression</title>
      <link>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192662#M627817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a new question on this topic.&lt;/P&gt;&lt;P&gt;Consider the following table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 233px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="100"&gt;DATE&lt;/TD&gt;&lt;TD class="xl66" width="133"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;OPENING_BALANCE&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;01/01/2016&lt;/TD&gt;&lt;TD class="xl66"&gt; 58.774 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;01/02/2016&lt;/TD&gt;&lt;TD class="xl66"&gt; 54.042 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;01/03/2016&lt;/TD&gt;&lt;TD class="xl66"&gt; 52.703 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;01/04/2016&lt;/TD&gt;&lt;TD class="xl66"&gt; 48.435 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;01/05/2016&lt;/TD&gt;&lt;TD class="xl66"&gt; 56.686 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;01/06/2016&lt;/TD&gt;&lt;TD class="xl66"&gt; 56.648 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;01/07/2016&lt;/TD&gt;&lt;TD class="xl66"&gt; 46.892 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;01/08/2016&lt;/TD&gt;&lt;TD class="xl66"&gt; 42.110 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;01/09/2016&lt;/TD&gt;&lt;TD class="xl66"&gt; 38.551 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;01/10/2016&lt;/TD&gt;&lt;TD class="xl66"&gt; 17.749 &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I select more months, the result of the function will be the OPENING BALANCE of the smallest month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunny's function makes the sum, so it is not correct for this new case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank, enrico&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 10:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192662#M627817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-03T10:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: sum function with SetExpression</title>
      <link>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192663#M627818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the output needed here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 16:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192663#M627818</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-03T16:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: sum function with SetExpression</title>
      <link>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192664#M627819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I select all the dates, the output is OPENING BALANCE = 58,774 because it has minimum selected date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 16:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192664#M627819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-03T16:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: sum function with SetExpression</title>
      <link>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192665#M627822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not what you want right? What do you want to see with and and without selections?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 17:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192665#M627822</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-03T17:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: sum function with SetExpression</title>
      <link>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192666#M627824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I select a month, output is the OPENING BALANCE value of the selected month.&lt;/P&gt;&lt;P&gt;For example, I select mar-2016 I get 52.703&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select more months, output is the OPENING BALANCE value of the smallest selected month.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For example, I select apr-2016 may&lt;SPAN style="font-size: 13.3333px;"&gt;-2016 jun&lt;SPAN style="font-size: 13.3333px;"&gt;-2016&lt;/SPAN&gt;&lt;/SPAN&gt; I get &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;48.435&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If I do not &lt;SPAN style="font-size: 13.3333px;"&gt;select&lt;/SPAN&gt;, output is the month OPENING BALANCE value of January, then &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;58.774&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SetExpression that you've written &lt;SPAN style="font-size: 13.3333px;"&gt; the filter &lt;/SPAN&gt;does not work in the sum, but if you use the filter only it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;MSCONTOTAB.MESEANNO_DEMISSIONE = {"=&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;MSCONTOTAB.MESEANNO_DEMISSIONE =&lt;/SPAN&gt;MonthName(Min({&amp;lt;MSCONTOTAB.ANNO_DEMISSIONE ={'$(=$(vAnno))'}&amp;gt;} MSCONTOTAB.DEMISSIONE))"}&amp;gt;} MSCONTOTAB.SALDO_INIZIALE)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 09:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192666#M627824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-04T09:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: sum function with SetExpression</title>
      <link>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192667#M627825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the sample you have provided&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="100"&gt;DATE&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="133"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;OPENING_BALANCE&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/01/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;58.774&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/02/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;54.042&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/03/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;52.703&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/04/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;48.435&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/05/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;56.686&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/06/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;56.648&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/07/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;46.892&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/08/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;42.110&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/09/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;38.551&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;01/10/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;17.749&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the expected output you are looking for, this expression should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;DATE = {"$(=Date(Min(DATE), 'DD/MM/YYYY'))"}&amp;gt;} OPENING_BALANCE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No selection&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143063_Capture.PNG" style="height: 258px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mar-2016 selected&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/143064_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apr-2016, May-2016, Jun-2016&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/143065_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Nov 2016 16:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-function-with-SetExpression/m-p/1192667#M627825</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-06T16:31:32Z</dc:date>
    </item>
  </channel>
</rss>

