<?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 using two different variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Function-using-two-different-variables/m-p/885845#M532937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 18:50:59 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-04-22T18:50:59Z</dc:date>
    <item>
      <title>Sum Function using two different variables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Function-using-two-different-variables/m-p/885842#M532934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to use the Sum function apply two variables to arrive at an aggregated total.&amp;nbsp; I have created the following expression that will work correctly for the Max Date (12/31/2014)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[BROKER]={'BLKR'},[BS Date]={"$(=Date(Max([BS Date]),'MM/DD/YYYY'))"}&amp;gt;}[BALANCE])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I need to aggregate a total based on dates from the previous two months (i.e. 11/28/2014 &amp;amp; 10/31/2014) using the following expressiosn:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[BROKER]={'BLKR'},[BS Date]={$Date={'10/31/2014'},'MM/DD/YYYY'"}&amp;gt;}[BALANCE])&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=Sum({$&amp;lt;[BROKER]={'BLKR'},[BS Date]={$Date={'11/28/2014'},'MM/DD/YYYY'"}&amp;gt;}[BALANCE])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Does anyone have an idea on how to solve for this?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 18:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Function-using-two-different-variables/m-p/885842#M532934</guid>
      <dc:creator />
      <dc:date>2015-04-22T18:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Function using two different variables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Function-using-two-different-variables/m-p/885843#M532935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what exactly you are trying to do, but try this:&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: 13px;"&gt;&lt;STRONG&gt;=Sum({$&amp;lt;[BROKER]={'BLKR'},[BS Date]={'10/31/2014', '11/28/2014'}&amp;gt;}[BALANCE])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This expression would sum up BALANCE for the two given dates (10/31/2014 and 11/28/2014) and where BROKER = BLKR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sunny&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 18:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Function-using-two-different-variables/m-p/885843#M532935</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-22T18:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Function using two different variables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Function-using-two-different-variables/m-p/885844#M532936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&amp;nbsp; This worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 18:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Function-using-two-different-variables/m-p/885844#M532936</guid>
      <dc:creator />
      <dc:date>2015-04-22T18:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Function using two different variables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Function-using-two-different-variables/m-p/885845#M532937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 18:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Function-using-two-different-variables/m-p/885845#M532937</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-22T18:50:59Z</dc:date>
    </item>
  </channel>
</rss>

