<?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: Load formula for changing months and years in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-formula-for-changing-months-and-years/m-p/1785739#M1210029</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/100758"&gt;@Strooprover&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DemandDate={"&amp;gt;=$(=MonthStart(Max(DemandDate),-2))&amp;lt;=$(=MonthEnd(Max(DemandDate)))"}&amp;gt;}Demand1)&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2021 11:24:24 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2021-02-24T11:24:24Z</dc:date>
    <item>
      <title>Load formula for changing months and years</title>
      <link>https://community.qlik.com/t5/QlikView/Load-formula-for-changing-months-and-years/m-p/1785671#M1210018</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a table with the following structure:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Article,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN&gt;DemandYear,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;DemandMonth,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Demand1&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I want to link this table to a different table based on the article field.&lt;BR /&gt;In the end I only want to sum up the 'Demand1' values for the 3 most recent monts in my QV report.&lt;/P&gt;&lt;P&gt;Is it possible to write a variable formula in the load script (or later in the QV file) to get this summed up value no matter which month the current month/year is?&lt;BR /&gt;&lt;BR /&gt;Much thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 08:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-formula-for-changing-months-and-years/m-p/1785671#M1210018</guid>
      <dc:creator>Strooprover</dc:creator>
      <dc:date>2021-02-24T08:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Load formula for changing months and years</title>
      <link>https://community.qlik.com/t5/QlikView/Load-formula-for-changing-months-and-years/m-p/1785696#M1210023</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/100758"&gt;@Strooprover&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;In Script,&lt;/P&gt;&lt;P&gt;MakeDate(DemandYear, DemandMonth,1) as DemandDate&lt;/P&gt;&lt;P&gt;In front end, try like this&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DemandDate = {"&amp;gt;=$(=MonthStart(Max(DemandDate),-2)&amp;lt;=$(=MonthEnd(Max(DemandDate))"}&amp;gt;}Demand1)&lt;/P&gt;&lt;P&gt;Might be, it helps&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 09:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-formula-for-changing-months-and-years/m-p/1785696#M1210023</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-02-24T09:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Load formula for changing months and years</title>
      <link>https://community.qlik.com/t5/QlikView/Load-formula-for-changing-months-and-years/m-p/1785720#M1210027</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your quick reply!&lt;/P&gt;&lt;P&gt;I've made the adjustments in the script.&lt;BR /&gt;The&amp;nbsp;'&lt;SPAN&gt;DemandDate' field is correctly made, but I seem to have problems with the frond end part.&lt;BR /&gt;&lt;BR /&gt;When I make a regular sum of 'Demand1' I get a value, but with your sum I get a empty value.&lt;BR /&gt;In added a testfile as example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you perhaps look why I don't get a correct sum?&lt;BR /&gt;&lt;BR /&gt;Much thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 10:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-formula-for-changing-months-and-years/m-p/1785720#M1210027</guid>
      <dc:creator>Strooprover</dc:creator>
      <dc:date>2021-02-24T10:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Load formula for changing months and years</title>
      <link>https://community.qlik.com/t5/QlikView/Load-formula-for-changing-months-and-years/m-p/1785739#M1210029</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/100758"&gt;@Strooprover&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DemandDate={"&amp;gt;=$(=MonthStart(Max(DemandDate),-2))&amp;lt;=$(=MonthEnd(Max(DemandDate)))"}&amp;gt;}Demand1)&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 11:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-formula-for-changing-months-and-years/m-p/1785739#M1210029</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-02-24T11:24:24Z</dc:date>
    </item>
  </channel>
</rss>

