<?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 Show Previous Quarter data in Table Chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657933#M49255</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I&amp;nbsp; am facing issue at Set analysis to get previous quarter [max(Quarter)-1] data when we select Quarter [max(Quarter)].&lt;/P&gt;&lt;P&gt;I have data format (YYYYMM) from that I derived Year (YYYY), Quarter(Q1) and&amp;nbsp; YearQtr (YYYYQ like 20191..) fields.&lt;/P&gt;&lt;P&gt;Written expressions in chart as below:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;YearQtr = {$(vPreviousQtr)}} Sales) - tried single, double and no quotations at variable.&lt;/P&gt;&lt;P&gt;VPreviousQtr = If(Right(YearQtr) = 1,&amp;nbsp; YearQtr-7, YearQtr-1) = It will show previous quarter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I tried with "autoCalendar" as well to get date fields.&lt;/P&gt;&lt;P&gt;I used "QuarterAgo" field in set analysis instead of YearQtr which has Quarter Numbers (starting with 0 like current quarter is '0'.&lt;/P&gt;&lt;P&gt;App has only Year and Quarter filters to select by users.&lt;/P&gt;&lt;P&gt;With above to ways i could not get previous quarter data by selected Quarter [max(quarter)].&lt;/P&gt;&lt;P&gt;Could you please assist with if you have any idea.&lt;/P&gt;&lt;P&gt;Thanks, Nihhal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:38:40 GMT</pubDate>
    <dc:creator>nihhalmca</dc:creator>
    <dc:date>2021-12-20T21:38:40Z</dc:date>
    <item>
      <title>Show Previous Quarter data in Table Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657933#M49255</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I&amp;nbsp; am facing issue at Set analysis to get previous quarter [max(Quarter)-1] data when we select Quarter [max(Quarter)].&lt;/P&gt;&lt;P&gt;I have data format (YYYYMM) from that I derived Year (YYYY), Quarter(Q1) and&amp;nbsp; YearQtr (YYYYQ like 20191..) fields.&lt;/P&gt;&lt;P&gt;Written expressions in chart as below:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;YearQtr = {$(vPreviousQtr)}} Sales) - tried single, double and no quotations at variable.&lt;/P&gt;&lt;P&gt;VPreviousQtr = If(Right(YearQtr) = 1,&amp;nbsp; YearQtr-7, YearQtr-1) = It will show previous quarter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I tried with "autoCalendar" as well to get date fields.&lt;/P&gt;&lt;P&gt;I used "QuarterAgo" field in set analysis instead of YearQtr which has Quarter Numbers (starting with 0 like current quarter is '0'.&lt;/P&gt;&lt;P&gt;App has only Year and Quarter filters to select by users.&lt;/P&gt;&lt;P&gt;With above to ways i could not get previous quarter data by selected Quarter [max(quarter)].&lt;/P&gt;&lt;P&gt;Could you please assist with if you have any idea.&lt;/P&gt;&lt;P&gt;Thanks, Nihhal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657933#M49255</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2021-12-20T21:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Show Previous Quarter data in Table Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657949#M49256</link>
      <description>&lt;P&gt;Nihal,&lt;/P&gt;&lt;P&gt;Say your max quarter is 20191 (YYYYQ - as you mentioned). Now you try to get the previous quarter from this probably by simply subtracting 1 something like : Max(Quarter)-1. Then what do you get ? It's 20191-1 = &lt;STRONG&gt;20190&lt;/STRONG&gt;. However, you expected the previous quarter, i.e. - &lt;STRONG&gt;20184&lt;/STRONG&gt; . So that's the catch.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 10:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657949#M49256</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-12-16T10:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Show Previous Quarter data in Table Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657950#M49257</link>
      <description>&lt;P&gt;Hi Tresesco - thanks for your response.&lt;/P&gt;&lt;P&gt;I am using below srcript to get previous quarter same mention in my question.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VPreviousQtr = If(Right(YearQtr) = 1,&amp;nbsp; YearQtr-7, YearQtr-1) = It will give previous quarter.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 10:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657950#M49257</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2019-12-16T10:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Show Previous Quarter data in Table Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657953#M49258</link>
      <description>&lt;P&gt;Sorry, somehow I missed that you mentioned in your post above.&lt;/P&gt;&lt;P&gt;You meant:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VPreviousQtr = If(Right(YearQtr&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;, 1&lt;/FONT&gt;&lt;/STRONG&gt;) = 1,&amp;nbsp; YearQtr-7, YearQtr-1)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; right?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 10:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657953#M49258</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-12-16T10:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Show Previous Quarter data in Table Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657954#M49259</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;I&amp;nbsp; believe that something went wrong while passing variable or hard coded&amp;nbsp; in set analysis.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 10:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657954#M49259</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2019-12-16T10:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Show Previous Quarter data in Table Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657958#M49261</link>
      <description>&lt;P&gt;So this resolved your issue...or still persists. If not resolved, could you share a sample app or few screenshots showing the issue?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 10:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657958#M49261</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-12-16T10:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Show Previous Quarter data in Table Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657980#M49263</link>
      <description>&lt;P&gt;Hi Tresesco, i could not copy screen shots from client sever/rdp and still not resolved issue.&lt;/P&gt;&lt;P&gt;Issue at set analysis as i mention in question there is any mistake in script? (set analysis) i did not see any error message but it is not working at chart or text box objects.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 11:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-Previous-Quarter-data-in-Table-Chart/m-p/1657980#M49263</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2019-12-16T11:29:43Z</dc:date>
    </item>
  </channel>
</rss>

