<?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: Calculate sum of an indicator between 2 dates for each month in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-sum-of-an-indicator-between-2-dates-for-each-month-in/m-p/1884404#M1217002</link>
    <description>&lt;P&gt;&lt;SPAN&gt;the convention that people use most often is that y depends on x. Really, though, 'x' and 'y' are just names that could be swapped out for any other symbols.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.myfeedbackcard.com/myindigocard/" target="_self"&gt;&lt;SPAN&gt;Myindigocard&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 11:02:49 GMT</pubDate>
    <dc:creator>nancychandler340</dc:creator>
    <dc:date>2022-01-24T11:02:49Z</dc:date>
    <item>
      <title>Calculate sum of an indicator between 2 dates for each month in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-of-an-indicator-between-2-dates-for-each-month-in/m-p/1884313#M1217001</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a table with :&lt;/P&gt;
&lt;P&gt;- DATE (monthyear format : YYYYMM)&lt;/P&gt;
&lt;P&gt;- a contract number&lt;/P&gt;
&lt;P&gt;- FLAG : a flag (=1 or 0)&lt;/P&gt;
&lt;P&gt;- other indicators&lt;/P&gt;
&lt;P&gt;In my report I've build&amp;nbsp; a table :&lt;/P&gt;
&lt;P&gt;- dimension : contract number, year month&lt;/P&gt;
&lt;P&gt;- expression : sum of flag of past 12 months&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I need to calculate for each contract and each month the sum of past year.&lt;/P&gt;
&lt;P&gt;Here is my expression (not working) :&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;DATE={"&amp;gt;=$(=Date(AddMonths(Max(DATE),-12),'YYYYMM'))&amp;lt;=$(=Date(AddMonths(Max(DATE),-1),'YYYYMM'))"}&amp;gt;}FLAG)=0&lt;/P&gt;
&lt;P&gt;Your help would be highly appreciated because I'm stuck with this problem for so long.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 08:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-of-an-indicator-between-2-dates-for-each-month-in/m-p/1884313#M1217001</guid>
      <dc:creator>Jenny_Sa</dc:creator>
      <dc:date>2022-01-24T08:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum of an indicator between 2 dates for each month in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-of-an-indicator-between-2-dates-for-each-month-in/m-p/1884404#M1217002</link>
      <description>&lt;P&gt;&lt;SPAN&gt;the convention that people use most often is that y depends on x. Really, though, 'x' and 'y' are just names that could be swapped out for any other symbols.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.myfeedbackcard.com/myindigocard/" target="_self"&gt;&lt;SPAN&gt;Myindigocard&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 11:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-of-an-indicator-between-2-dates-for-each-month-in/m-p/1884404#M1217002</guid>
      <dc:creator>nancychandler340</dc:creator>
      <dc:date>2022-01-24T11:02:49Z</dc:date>
    </item>
  </channel>
</rss>

