<?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 Chart sum with set expression question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-sum-with-set-expression-question/m-p/177244#M44929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;in my chart I need to calculate the sum of values by season: winter, spring, summer, autumn.&lt;/P&gt;&lt;P&gt;In the source data I have just Year and Month information. So in the load script I create a new field SEASON_YEAR:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month Year Season_Year&lt;/P&gt;&lt;P&gt;01 2005 2005&lt;/P&gt;&lt;P&gt;02 2005 2005&lt;/P&gt;&lt;P&gt;... ... ...&lt;/P&gt;&lt;P&gt;11 2005 2005&lt;/P&gt;&lt;P&gt;12 2005 2006&lt;/P&gt;&lt;P&gt;01 2006 2006&lt;/P&gt;&lt;P&gt;02 2006 2006&lt;/P&gt;&lt;P&gt;... ... ...&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So, I thought I would add 4 expressions symbolizing the 4 year seasons:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Month={12,01,02}, Year=Season_Year&amp;gt;} Values)&lt;/STRONG&gt; - winter&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Month={09,10,11}, Year=Season_Year&amp;gt;} Values)&lt;/STRONG&gt; - autumn&lt;/P&gt;&lt;P&gt;However, this does not seem to work. At least the part Year=Season_Year does not work for sure.&lt;/P&gt;&lt;P&gt;What is a correct way to write this expression?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Valera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Mar 2010 21:31:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-03-11T21:31:21Z</dc:date>
    <item>
      <title>Chart sum with set expression question</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-sum-with-set-expression-question/m-p/177244#M44929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;in my chart I need to calculate the sum of values by season: winter, spring, summer, autumn.&lt;/P&gt;&lt;P&gt;In the source data I have just Year and Month information. So in the load script I create a new field SEASON_YEAR:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month Year Season_Year&lt;/P&gt;&lt;P&gt;01 2005 2005&lt;/P&gt;&lt;P&gt;02 2005 2005&lt;/P&gt;&lt;P&gt;... ... ...&lt;/P&gt;&lt;P&gt;11 2005 2005&lt;/P&gt;&lt;P&gt;12 2005 2006&lt;/P&gt;&lt;P&gt;01 2006 2006&lt;/P&gt;&lt;P&gt;02 2006 2006&lt;/P&gt;&lt;P&gt;... ... ...&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So, I thought I would add 4 expressions symbolizing the 4 year seasons:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Month={12,01,02}, Year=Season_Year&amp;gt;} Values)&lt;/STRONG&gt; - winter&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Month={09,10,11}, Year=Season_Year&amp;gt;} Values)&lt;/STRONG&gt; - autumn&lt;/P&gt;&lt;P&gt;However, this does not seem to work. At least the part Year=Season_Year does not work for sure.&lt;/P&gt;&lt;P&gt;What is a correct way to write this expression?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Valera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 21:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-sum-with-set-expression-question/m-p/177244#M44929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-11T21:31:21Z</dc:date>
    </item>
    <item>
      <title>Chart sum with set expression question</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-sum-with-set-expression-question/m-p/177245#M44930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Valera,&lt;/P&gt;&lt;P&gt;the reason the Set Analysis condition doesn't work is because the Set Analysis condition is being evaluated "globally", outside of the individual Chart cell. You can check for Year = 2010, but you can't compare two Year fields from the same row... Hope it makes sense.&lt;/P&gt;&lt;P&gt;What I think you should do is use your Season_Year as a dimension instead of the Year - that way, it should work correctly.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 21:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-sum-with-set-expression-question/m-p/177245#M44930</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-03-11T21:58:46Z</dc:date>
    </item>
  </channel>
</rss>

