<?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: Calculate sum based onCurrent selection date. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506511#M1137489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; year, quarter and month are these referring to same date field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean I have year and month_name taken from two different fields..so this is not working for me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;I am getting common value for all selection &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;can u just telling the use of only?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Oct 2013 12:07:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-03T12:07:53Z</dc:date>
    <item>
      <title>Calculate sum based onCurrent selection date.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506505#M1137483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to get sum of&amp;nbsp; amount that is transacted in less than or equal to current selection date in a bar chart. My selection is based&amp;nbsp; on Month name. Can anyone help me out &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prajna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 10:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506505#M1137483</guid>
      <dc:creator />
      <dc:date>2013-10-03T10:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum based onCurrent selection date.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506506#M1137484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Date={"&amp;lt;=$(Max(Date))"}&amp;gt;}Amount)&amp;nbsp; // assuming Date field is there. Otherwise there would be couple of things to be careful of, like if you want single year data or all the months from last years as well; date format. Best would be if you could share sample app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 10:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506506#M1137484</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-03T10:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum based onCurrent selection date.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506507#M1137485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;selection field has only month name and year. year (2011,2012,2013) and month name from Jan to dec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp; If I select year= 2011 and month name = 'Apr''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I want sum of amt&amp;nbsp; from Jan to Apr for year 2011&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 10:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506507#M1137485</guid>
      <dc:creator />
      <dc:date>2013-10-03T10:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum based onCurrent selection date.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506508#M1137486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then try:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month={"&amp;lt;=$(Max(Month))"}&amp;gt;}Amount)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // If month is created in the script using month() function, it should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 10:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506508#M1137486</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-03T10:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum based onCurrent selection date.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506509#M1137487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried with a key that I had created for month table it worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Prajna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 10:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506509#M1137487</guid>
      <dc:creator />
      <dc:date>2013-10-03T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum based onCurrent selection date.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506510#M1137488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this expression ,its working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;datefield={"&amp;lt;=$(=only(datefield))"}&amp;gt;}amount) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;if u need to use upto current date,if u have year ,quarter ,month fields then use below condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;datefield={"&amp;lt;=$(=only(datefield))"},year=,quarter=,month= &amp;gt;}amount) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this expression gives up to current month &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 10:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506510#M1137488</guid>
      <dc:creator />
      <dc:date>2013-10-03T10:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum based onCurrent selection date.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506511#M1137489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; year, quarter and month are these referring to same date field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean I have year and month_name taken from two different fields..so this is not working for me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;I am getting common value for all selection &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;can u just telling the use of only?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 12:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506511#M1137489</guid>
      <dc:creator />
      <dc:date>2013-10-03T12:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum based onCurrent selection date.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506512#M1137490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only function refer ,current selection value&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let us suppose &lt;/P&gt;&lt;P&gt;year=2000,2001,2002,.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u select 2000 ,then only(year)=2000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 12:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-based-onCurrent-selection-date/m-p/506512#M1137490</guid>
      <dc:creator />
      <dc:date>2013-10-03T12:16:56Z</dc:date>
    </item>
  </channel>
</rss>

