<?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 problem with conditional sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-with-conditional-sum/m-p/239683#M90284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a problem with a conditional sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following situation. I have a straight table with one dimension called region. and then I have the following 3 expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) if&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;year=2010 , sum(A)+sum(b))&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;if(&lt;/STRONG&gt;year=2009 , sum(A)+sum(b))&lt;/P&gt;&lt;P&gt;3) column(1)/column(2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is the current one. If the user doenst select anything both 1 and 2 are not calculated. then if user selects year 2010 only 1 is getting caclulated and user selects 2009 as a year only the 2 is getting populated. what I want is that both of them are getting calculated on the same time so 3 can work.&lt;/P&gt;&lt;P&gt;any ideas? thank you in advance!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Oct 2010 09:01:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-18T09:01:39Z</dc:date>
    <item>
      <title>problem with conditional sum</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-conditional-sum/m-p/239683#M90284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a problem with a conditional sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following situation. I have a straight table with one dimension called region. and then I have the following 3 expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) if&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;year=2010 , sum(A)+sum(b))&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;if(&lt;/STRONG&gt;year=2009 , sum(A)+sum(b))&lt;/P&gt;&lt;P&gt;3) column(1)/column(2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is the current one. If the user doenst select anything both 1 and 2 are not calculated. then if user selects year 2010 only 1 is getting caclulated and user selects 2009 as a year only the 2 is getting populated. what I want is that both of them are getting calculated on the same time so 3 can work.&lt;/P&gt;&lt;P&gt;any ideas? thank you in advance!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 09:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-conditional-sum/m-p/239683#M90284</guid>
      <dc:creator />
      <dc:date>2010-10-18T09:01:39Z</dc:date>
    </item>
    <item>
      <title>problem with conditional sum</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-conditional-sum/m-p/239684#M90285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try use set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;For expression 1:&lt;BR /&gt;Sum({$&amp;lt;Year = {2010}&amp;gt;} A + B)&lt;BR /&gt;For Expression 2:&lt;BR /&gt;Sum({$&amp;lt;Year = {2009}&amp;gt;} A + B)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 09:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-conditional-sum/m-p/239684#M90285</guid>
      <dc:creator />
      <dc:date>2010-10-18T09:17:25Z</dc:date>
    </item>
    <item>
      <title>problem with conditional sum</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-conditional-sum/m-p/239685#M90286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Tr using set Analysis.&lt;/P&gt;&lt;P&gt;1.Sum({&amp;lt;Year={2010}&amp;gt;} A)+Sum({&amp;lt;Year={2010}&amp;gt;} B) or Sum({&amp;lt;Year={2010}&amp;gt;} A+B) (Depending on your Table structure)&lt;/P&gt;&lt;P&gt;2.Sum({&amp;lt;Year={2009}&amp;gt;} A)+Sum({&amp;lt;Year={2009}&amp;gt;} B) or Sum({&amp;lt;Year={2010}&amp;gt;} A+B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Syed Muzammil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 09:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-conditional-sum/m-p/239685#M90286</guid>
      <dc:creator>syed_muzammil</dc:creator>
      <dc:date>2010-10-18T09:19:44Z</dc:date>
    </item>
    <item>
      <title>problem with conditional sum</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-conditional-sum/m-p/239686#M90287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks guys! it works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 09:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-conditional-sum/m-p/239686#M90287</guid>
      <dc:creator />
      <dc:date>2010-10-18T09:26:22Z</dc:date>
    </item>
  </channel>
</rss>

