<?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 Current and previous years calculation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Current-and-previous-years-calculation/m-p/1851876#M70364</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I need to calculate values for current year and two previous years.&lt;BR /&gt;In example:&lt;/P&gt;
&lt;P&gt;If I choose 2019 year Q2, I need to see values for: 2019 year Q1, Q2 &lt;STRONG&gt;AND&lt;/STRONG&gt; 2018 year Q1,Q2,Q3,Q4 &lt;STRONG&gt;AND&amp;nbsp;&lt;/STRONG&gt;2017 year Q1,Q2,Q3,Q4.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MK97_0-1635254435210.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65248i07383FDC555E7299/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MK97_0-1635254435210.png" alt="MK97_0-1635254435210.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Current calculation :&amp;nbsp;&lt;BR /&gt;SUM({$&amp;lt;[Late payment]={"&amp;gt;30&amp;lt;=60"},Year="$(=Max(Year(Date)))","$(=Max(Year(Date))-1)","$(=Max(Year(Date))-2)"}&amp;gt;}[Payment])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 13:28:26 GMT</pubDate>
    <dc:creator>MK97</dc:creator>
    <dc:date>2021-10-26T13:28:26Z</dc:date>
    <item>
      <title>Current and previous years calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Current-and-previous-years-calculation/m-p/1851876#M70364</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I need to calculate values for current year and two previous years.&lt;BR /&gt;In example:&lt;/P&gt;
&lt;P&gt;If I choose 2019 year Q2, I need to see values for: 2019 year Q1, Q2 &lt;STRONG&gt;AND&lt;/STRONG&gt; 2018 year Q1,Q2,Q3,Q4 &lt;STRONG&gt;AND&amp;nbsp;&lt;/STRONG&gt;2017 year Q1,Q2,Q3,Q4.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MK97_0-1635254435210.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65248i07383FDC555E7299/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MK97_0-1635254435210.png" alt="MK97_0-1635254435210.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Current calculation :&amp;nbsp;&lt;BR /&gt;SUM({$&amp;lt;[Late payment]={"&amp;gt;30&amp;lt;=60"},Year="$(=Max(Year(Date)))","$(=Max(Year(Date))-1)","$(=Max(Year(Date))-2)"}&amp;gt;}[Payment])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 13:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-and-previous-years-calculation/m-p/1851876#M70364</guid>
      <dc:creator>MK97</dc:creator>
      <dc:date>2021-10-26T13:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Current and previous years calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Current-and-previous-years-calculation/m-p/1853594#M70478</link>
      <description>&lt;P&gt;&amp;nbsp;Hi, As a starter I would consider adding some kind of numeric QuarterNum field to your app, i.e. 2021 Q2 might be equal to 202102. This is probably going to be helpful no matter the solution&lt;/P&gt;
&lt;P&gt;You have said above which quarters you want to display when a single quarter is selected. But what about when the user selects multiple quarters, i.e 2019 Q1 and 2018 Q1? What behaviour do you want in that case?&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 10:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-and-previous-years-calculation/m-p/1853594#M70478</guid>
      <dc:creator>BenjaminT</dc:creator>
      <dc:date>2021-10-29T10:46:36Z</dc:date>
    </item>
  </channel>
</rss>

