<?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 Year2Date calculations issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year2Date-calculations-issue/m-p/221183#M74010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rey-man,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;BR /&gt;&lt;BR /&gt;Not quite there yet, though.&lt;BR /&gt;The &lt;STRONG&gt;MaxSelecYear&lt;/STRONG&gt; and &lt;STRONG&gt;MaxSelecPeriod&lt;/STRONG&gt; are variables, not fields. As such, each variable has only one number in it for a certain selection. Comparing it with the max of this number seems a bit strange.&lt;/P&gt;&lt;P&gt;Also, do you know how to properly introduce a Variable into a set expression?&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Oct 2009 20:45:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-21T20:45:54Z</dc:date>
    <item>
      <title>Year2Date calculations issue</title>
      <link>https://community.qlik.com/t5/QlikView/Year2Date-calculations-issue/m-p/221181#M74008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a question about calculations.&lt;/P&gt;&lt;P&gt;I have to variables:&lt;BR /&gt;&lt;STRONG&gt;MaxSelecPeriod&lt;/STRONG&gt; --&amp;gt; Contains the highest selected date number (number field, not date field) Ex: 200910&lt;BR /&gt;&lt;STRONG&gt;MaxSelecYear&lt;/STRONG&gt; --&amp;gt; Contains the year number of the selected date (number field, not date field) EX: 2009&lt;/P&gt;&lt;P&gt;Now I want to write an expression in my Straight table column that will give me the SUM([&lt;STRONG&gt;Actual Fact]&lt;/STRONG&gt;) for the each [&lt;STRONG&gt;YearMonth&lt;/STRONG&gt;] (number field, not date field) that is equal to or lower than ( &amp;lt;= ) than the &lt;STRONG&gt;MaxSelecPeriod&lt;/STRONG&gt;, and for which the [&lt;STRONG&gt;Year&lt;/STRONG&gt;] (number field, not date field) equals &lt;STRONG&gt;MaxSelecYear&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Should/can I do this with IF statements, should I use the Set Analysis, should I do this in some other way?&lt;/P&gt;&lt;P&gt;I think it is best to use a Set Analysis statement because witht he IF statement I tried I got no result at all when I have no MonthYear selected yet.&lt;BR /&gt;Also; what is the expression for 'lower or equal to'?&lt;/P&gt;&lt;P&gt;Thanks already,&lt;BR /&gt;With kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 19:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year2Date-calculations-issue/m-p/221181#M74008</guid>
      <dc:creator />
      <dc:date>2009-10-21T19:43:03Z</dc:date>
    </item>
    <item>
      <title>Year2Date calculations issue</title>
      <link>https://community.qlik.com/t5/QlikView/Year2Date-calculations-issue/m-p/221182#M74009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe this is what you are looking for:&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;Sum (&lt;BR /&gt; {1&amp;lt;&lt;BR /&gt; &lt;B&gt;MaxSelecYear&lt;/B&gt;={$(=Max(&lt;B&gt;MaxSelecYear&lt;/B&gt;))},&lt;BR /&gt; &lt;B&gt;MaxSelecPeriod&lt;/B&gt;={'&amp;lt;=$(=&lt;B&gt;MaxSelecPeriod&lt;/B&gt;'}&lt;BR /&gt; &amp;gt;}&lt;BR /&gt; [&lt;B&gt;Actual Fact&lt;/B&gt;]&lt;BR /&gt;)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Rey-man&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 20:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year2Date-calculations-issue/m-p/221182#M74009</guid>
      <dc:creator />
      <dc:date>2009-10-21T20:14:51Z</dc:date>
    </item>
    <item>
      <title>Year2Date calculations issue</title>
      <link>https://community.qlik.com/t5/QlikView/Year2Date-calculations-issue/m-p/221183#M74010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rey-man,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;BR /&gt;&lt;BR /&gt;Not quite there yet, though.&lt;BR /&gt;The &lt;STRONG&gt;MaxSelecYear&lt;/STRONG&gt; and &lt;STRONG&gt;MaxSelecPeriod&lt;/STRONG&gt; are variables, not fields. As such, each variable has only one number in it for a certain selection. Comparing it with the max of this number seems a bit strange.&lt;/P&gt;&lt;P&gt;Also, do you know how to properly introduce a Variable into a set expression?&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 20:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year2Date-calculations-issue/m-p/221183#M74010</guid>
      <dc:creator />
      <dc:date>2009-10-21T20:45:54Z</dc:date>
    </item>
    <item>
      <title>Year2Date calculations issue</title>
      <link>https://community.qlik.com/t5/QlikView/Year2Date-calculations-issue/m-p/221184#M74011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use something like this:&lt;/P&gt;&lt;P&gt;Year={"&amp;lt;=$(&lt;STRONG&gt;MaxSelecYear&lt;/STRONG&gt; )"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rey-man&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 14:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year2Date-calculations-issue/m-p/221184#M74011</guid>
      <dc:creator />
      <dc:date>2009-10-22T14:23:12Z</dc:date>
    </item>
  </channel>
</rss>

