<?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 Last year quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-year-quarter/m-p/2010874#M1221757</link>
    <description>&lt;P&gt;Hello guys,&lt;/P&gt;
&lt;P&gt;I need to calculate the selling summarize of the relative quarter of the last year; for example in September 2022 I had to consider Sep-Oct-Nov 2021, in October 2022 Oct-Nov-Dec 2021&lt;/P&gt;
&lt;P&gt;To do this calculation I use this formula:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;AnnoCompetenzaVEN={"$(=Year(Today())-1)"}, MeseCompetenzaVEN={"&amp;gt;=$(=Num(Month(Today())))&amp;lt;=$(=Num(Month(Today()))+2)"}&amp;gt;} QtaVendutaStorica)&lt;/P&gt;
&lt;P&gt;My problem is that in November 2022 I should consider Nov-Dec 2021-Jan 2022, in December 2022 Dec 2021-Jan-Feb 2022&lt;/P&gt;
&lt;P&gt;Could anyone help me with this set analysis formula, please?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;N.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 11:25:40 GMT</pubDate>
    <dc:creator>NickP_DF</dc:creator>
    <dc:date>2022-11-30T11:25:40Z</dc:date>
    <item>
      <title>Last year quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-quarter/m-p/2010874#M1221757</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;
&lt;P&gt;I need to calculate the selling summarize of the relative quarter of the last year; for example in September 2022 I had to consider Sep-Oct-Nov 2021, in October 2022 Oct-Nov-Dec 2021&lt;/P&gt;
&lt;P&gt;To do this calculation I use this formula:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;AnnoCompetenzaVEN={"$(=Year(Today())-1)"}, MeseCompetenzaVEN={"&amp;gt;=$(=Num(Month(Today())))&amp;lt;=$(=Num(Month(Today()))+2)"}&amp;gt;} QtaVendutaStorica)&lt;/P&gt;
&lt;P&gt;My problem is that in November 2022 I should consider Nov-Dec 2021-Jan 2022, in December 2022 Dec 2021-Jan-Feb 2022&lt;/P&gt;
&lt;P&gt;Could anyone help me with this set analysis formula, please?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;N.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 11:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-quarter/m-p/2010874#M1221757</guid>
      <dc:creator>NickP_DF</dc:creator>
      <dc:date>2022-11-30T11:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Last year quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-quarter/m-p/2010884#M1221759</link>
      <description>&lt;P&gt;What you're describing isn't a quarter per se, near as I can tell, it's a running-three-months calculation. Perhaps try using Date = {"&amp;gt;=$(=AddYears(MonthStart(Today()),-1)&amp;lt;=$(=AddYears(MonthEnd(AddMonths(Today(),2),-1)))"}&amp;gt;} or something similar (I hope I got the syntax spot on, since I can't test it and there's a lot of parenthesis in there).&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 11:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-quarter/m-p/2010884#M1221759</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-11-30T11:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Last year quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-quarter/m-p/2011969#M1221788</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Your suggestion is a good solution; I wasn't able to solve with the elegant set_analysis&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;DataCompetenzaVEN={"&amp;gt;=$(=AddYears(MonthStart(Today()),-1)&amp;lt;=$(=AddYears(MonthEnd(AddMonths(Today(),2)),-1))"}&amp;gt;} QtaVendutaStorica)&lt;/P&gt;
&lt;P&gt;but I made it with a rough formula:&lt;/P&gt;
&lt;P&gt;Sum(IF(DataCompetenzaVEN&amp;gt;=AddYears(MonthStart(Today()),-1) and DataCompetenzaVEN&amp;lt;=AddYears(MonthEnd(AddMonths(Today(),2)),-1),QtaVendutaStorica))&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;Are you able to teach me what is wrong in the first formula, pls?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;N.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 09:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-quarter/m-p/2011969#M1221788</guid>
      <dc:creator>NickP_DF</dc:creator>
      <dc:date>2022-12-02T09:34:08Z</dc:date>
    </item>
  </channel>
</rss>

