<?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 sum month constant in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-month-constant/m-p/610054#M1104169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I'd like to share this problem with you: I have a bar chart where X axis is month and where there is only an expression which has the following form:&lt;/P&gt;&lt;P&gt;2571+(66/4)*(subfield(num(month)/3,',',1) ).&lt;/P&gt;&lt;P&gt;And it work perfectly, but I would like to visualize all months &amp;lt;= month selected, so I tought I should use a set analysis like that Sum({&amp;lt;month={"&amp;lt;=$(=max(month))"}&amp;gt;} ... ) but it didn't work ... why? I even tried just sum({&amp;lt;month={"&amp;lt;=$(=max(month))"}&amp;gt;} 1) but values were so strange...Can you help me find a solution? &lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;IB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 12:22:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-07T12:22:32Z</dc:date>
    <item>
      <title>sum month constant</title>
      <link>https://community.qlik.com/t5/QlikView/sum-month-constant/m-p/610054#M1104169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I'd like to share this problem with you: I have a bar chart where X axis is month and where there is only an expression which has the following form:&lt;/P&gt;&lt;P&gt;2571+(66/4)*(subfield(num(month)/3,',',1) ).&lt;/P&gt;&lt;P&gt;And it work perfectly, but I would like to visualize all months &amp;lt;= month selected, so I tought I should use a set analysis like that Sum({&amp;lt;month={"&amp;lt;=$(=max(month))"}&amp;gt;} ... ) but it didn't work ... why? I even tried just sum({&amp;lt;month={"&amp;lt;=$(=max(month))"}&amp;gt;} 1) but values were so strange...Can you help me find a solution? &lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;IB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 12:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-month-constant/m-p/610054#M1104169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-07T12:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: sum month constant</title>
      <link>https://community.qlik.com/t5/QlikView/sum-month-constant/m-p/610055#M1104170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dimension ....&lt;/P&gt;&lt;P&gt;use below as a calculated dimension instead of month as dimension...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(Month&amp;lt;=Month(Today()),Month)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;You can use your desired month instead of Month(Today())&lt;/P&gt;&lt;P&gt;Tick Suppress When Value is NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;Same as you have used above...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 13:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-month-constant/m-p/610055#M1104170</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-07T13:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: sum month constant</title>
      <link>https://community.qlik.com/t5/QlikView/sum-month-constant/m-p/610056#M1104171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thank U Manish. I found out where the problem was: I have to admit that the situation I illustrated it was placed in a wider scenario, where month was loaded more than once, so what happened was that the constant values I introduced were counted as many times as each month was loaded... so the so-called "strange values" appeared! Then I paid attention to that fact and I introduced DISTINCT in my sum... and now everything works perfectly!&lt;/P&gt;&lt;P&gt;Thank U again&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;IB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 09:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-month-constant/m-p/610056#M1104171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-08T09:48:41Z</dc:date>
    </item>
  </channel>
</rss>

