<?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: Comparing  in a table previous year last quarter  to current year first quarter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-in-a-table-previous-year-last-quarter-to-current-year/m-p/2068536#M87641</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Qty&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;=&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;Year = {'$(vCurrentYear)'},Date={"&amp;lt;=$(vMaxDate)"}&amp;gt;} CountEntries_Monthly)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Difference&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;=&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;Year = {'$(vCurrentYear)'},Date={"&amp;lt;=$(vMaxDate)"}&amp;gt;} CountEntries_Monthly) - Above(Sum({&amp;lt;Year = {'$(vCurrentYear)'},Date={"&amp;lt;=$(vMaxDate)"}&amp;gt;} CountEntries_Monthly) )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%Difference&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;1 - (&lt;/SPAN&gt;&lt;SPAN&gt;Sum({&amp;lt;Year = {'$(vCurrentYear)'},Date={"&amp;lt;=$(vMaxDate)"}&amp;gt;} CountEntries_Monthly) / Above(Sum({&amp;lt;Year = {'$(vCurrentYear)'},Date={"&amp;lt;=$(vMaxDate)"}&amp;gt;} CountEntries_Monthly) )&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 08:07:41 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2023-05-08T08:07:41Z</dc:date>
    <item>
      <title>Comparing  in a table previous year last quarter  to current year first quarter</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-in-a-table-previous-year-last-quarter-to-current-year/m-p/2068485#M87638</link>
      <description>&lt;P&gt;Hi People,&lt;/P&gt;
&lt;P&gt;I am trying to compare quarters for a current (selected) year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to display difference between consecutive rows.&lt;/P&gt;
&lt;P&gt;I wanted to display only the current years quarters, and for the 1st quarter, to display the difference from the last quarter&amp;nbsp;in the previous year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on previous posts, I tried the following expression:&lt;/P&gt;
&lt;P&gt;if(RowNo() =2,&lt;BR /&gt;(Sum({&amp;lt;Year = {'$(vCurrentYear)'},Date={"&amp;lt;=$(vMaxDate)"}&amp;gt;} CountEntries_Monthly)&lt;BR /&gt;/&lt;BR /&gt;Sum({&amp;lt; $(eClearDates),QuarterStart = {"$(=QuarterStart(vMinDate,-1))"} &amp;gt;} CountEntries_Monthly) &lt;BR /&gt;)&lt;BR /&gt;-1&lt;BR /&gt;,&lt;BR /&gt;If(RowNo()&amp;gt;2,&lt;BR /&gt;(&lt;BR /&gt;Sum({&amp;lt;Year = {'$(vCurrentYear)'},Date={"&amp;lt;=$(vMaxDate)"}&amp;gt;} CountEntries_Monthly)&lt;BR /&gt;/&lt;BR /&gt;Above(&lt;BR /&gt;Sum({&amp;lt;Year = {'$(vCurrentYear)'},Date={"&amp;lt;=$(vMaxDate)"}&amp;gt;} CountEntries_Monthly)&lt;BR /&gt;))&lt;BR /&gt;-1&lt;BR /&gt;))&lt;/P&gt;
&lt;P&gt;But it doesn't work..&lt;/P&gt;
&lt;P&gt;I also don't want 2021-Q4 to be displayed..&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone helpme?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QTR DIFF.png" style="width: 501px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106602iC421355B427EC0FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="QTR DIFF.png" alt="QTR DIFF.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 05:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-in-a-table-previous-year-last-quarter-to-current-year/m-p/2068485#M87638</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2023-05-08T05:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing  in a table previous year last quarter  to current year first quarter</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-in-a-table-previous-year-last-quarter-to-current-year/m-p/2068536#M87641</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Qty&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;=&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;Year = {'$(vCurrentYear)'},Date={"&amp;lt;=$(vMaxDate)"}&amp;gt;} CountEntries_Monthly)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Difference&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;=&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;Year = {'$(vCurrentYear)'},Date={"&amp;lt;=$(vMaxDate)"}&amp;gt;} CountEntries_Monthly) - Above(Sum({&amp;lt;Year = {'$(vCurrentYear)'},Date={"&amp;lt;=$(vMaxDate)"}&amp;gt;} CountEntries_Monthly) )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%Difference&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;1 - (&lt;/SPAN&gt;&lt;SPAN&gt;Sum({&amp;lt;Year = {'$(vCurrentYear)'},Date={"&amp;lt;=$(vMaxDate)"}&amp;gt;} CountEntries_Monthly) / Above(Sum({&amp;lt;Year = {'$(vCurrentYear)'},Date={"&amp;lt;=$(vMaxDate)"}&amp;gt;} CountEntries_Monthly) )&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 08:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-in-a-table-previous-year-last-quarter-to-current-year/m-p/2068536#M87641</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-05-08T08:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing  in a table previous year last quarter  to current year first quarter</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-in-a-table-previous-year-last-quarter-to-current-year/m-p/2068574#M87643</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Your suggestion would not display the difference between the last&amp;nbsp; quarter in the previous year&lt;/P&gt;
&lt;P&gt;and the first quarter in the current year.&lt;/P&gt;
&lt;P&gt;Thanks..&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 09:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-in-a-table-previous-year-last-quarter-to-current-year/m-p/2068574#M87643</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2023-05-08T09:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing  in a table previous year last quarter  to current year first quarter</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-in-a-table-previous-year-last-quarter-to-current-year/m-p/2068597#M87648</link>
      <description>&lt;P&gt;just remove the Year filter from set analysis&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 09:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-in-a-table-previous-year-last-quarter-to-current-year/m-p/2068597#M87648</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-05-08T09:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing  in a table previous year last quarter  to current year first quarter</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-in-a-table-previous-year-last-quarter-to-current-year/m-p/2068759#M87658</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I figured a solution that satisfies partially, but it's simpler and works..&lt;/P&gt;
&lt;P&gt;Added to Calendar:&lt;BR /&gt;QuarterStart(Date) AS QuarterStart&lt;/P&gt;
&lt;P&gt;Added&amp;nbsp;Variables:&lt;BR /&gt;vMinQuarterStart -&amp;nbsp; previous qtr to the first qtr in the selected period&lt;BR /&gt;=QuarterStart(vMinDate,-1)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;vMaxQuarterStart - last qtr in the selected period&lt;BR /&gt;=QuarterStart(vMaxDate,0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Qty&lt;BR /&gt;Sum({&amp;lt;$(eClearDates),QuarterStart = {"&amp;gt;=$(vMinQuarterStart) &amp;lt;=$(vMaxQuarterStart)"}&amp;gt;} CountEntries_Monthly)&lt;/P&gt;
&lt;P&gt;Difference&lt;BR /&gt;(&lt;BR /&gt;Sum({&amp;lt;$(eClearDates),QuarterStart = {"&amp;gt;=$(vMinQuarterStart) &amp;lt;=$(vMaxQuarterStart)"}&amp;gt;} CountEntries_Monthly)&lt;BR /&gt;/&lt;BR /&gt;Above(&lt;BR /&gt;Sum({&amp;lt;$(eClearDates),QuarterStart = {"&amp;gt;=$(vMinQuarterStart) &amp;lt;=$(vMaxQuarterStart)"}&amp;gt;} CountEntries_Monthly)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;-1&lt;/P&gt;
&lt;P&gt;Last year qtr is displayed, but i can live that ... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dana_0-1683557542110.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106651i86E7A54227FDCA14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dana_0-1683557542110.png" alt="dana_0-1683557542110.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Appreciate any comments..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 14:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-in-a-table-previous-year-last-quarter-to-current-year/m-p/2068759#M87658</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2023-05-08T14:53:26Z</dc:date>
    </item>
  </channel>
</rss>

