<?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 in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-in-set-analysis/m-p/442332#M164884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still brings back $0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's interesting is its bringing back 0, not null. So its working, technically. I put in display boxes with the two variables, and they do bring back the correct date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this be a different issue and not the equation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Apr 2013 15:39:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-10T15:39:58Z</dc:date>
    <item>
      <title>Sum in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-in-set-analysis/m-p/442330#M164882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I am trying to sum a field called "losses" using set analysis. However, I am trying to due it based on a date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set up two variables. One called "vMinDatePY" and "vMaxDatePY". These take the current date range chosen and get the min and max of that date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you choose the year 2013, the min date would be 1/1/2012 and max date variable would be 12/31/2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my current equation...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;AccounttheDate = {"&amp;gt;=$(vMinDatePY)", "&amp;lt;=$(vMaxDatePY)"}, Year=, Month= &amp;gt;} Losses)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It keeps coming back as $0. How do I fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 15:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-in-set-analysis/m-p/442330#M164882</guid>
      <dc:creator />
      <dc:date>2013-04-10T15:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-in-set-analysis/m-p/442331#M164883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;AccounttheDate = {'&amp;gt;=$(vMinDatePY)&amp;lt;=$(vMaxDatePY)'}, Year=, Month= &amp;gt;} Losses)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 15:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-in-set-analysis/m-p/442331#M164883</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-04-10T15:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sum in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-in-set-analysis/m-p/442332#M164884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still brings back $0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's interesting is its bringing back 0, not null. So its working, technically. I put in display boxes with the two variables, and they do bring back the correct date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this be a different issue and not the equation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 15:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-in-set-analysis/m-p/442332#M164884</guid>
      <dc:creator />
      <dc:date>2013-04-10T15:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sum in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-in-set-analysis/m-p/442333#M164885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are sure variables are correct try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the script convert the field AccounttheDate to Num(AccounttheDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the same thing to the two variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this transform dates in equivalent numbers, in this way you can verify if everithing is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it works then the issue is date format that you can solve with date(nnnnnn, 'dd/MM/yyyy')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to understand better the problem try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;AccounttheDate = {'&amp;gt;=20130101&amp;lt;=20130401'}, Year=, Month= &amp;gt;} Losses) it must work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 15:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-in-set-analysis/m-p/442333#M164885</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-04-10T15:53:43Z</dc:date>
    </item>
  </channel>
</rss>

