<?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: current vs previous quarter sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/current-vs-previous-quarter-sales/m-p/682507#M1059575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vPriorQuarter needs to be calculate differently and you need to calculate the year of the previous quarter too. See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 11:49:06 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-09-24T11:49:06Z</dc:date>
    <item>
      <title>current vs previous quarter sales</title>
      <link>https://community.qlik.com/t5/QlikView/current-vs-previous-quarter-sales/m-p/682505#M1059573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to compare sales by current quarter vs previous quarter using set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a user click in the quarter list box, the straight table should show max quarter and its previous quarter sales. However whenever i do selections in quarter list box both current and previous quarter columns are giving same values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the varaiable vMaxQuarter and vPriorQuarter has got issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Please help !!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/current-vs-previous-quarter-sales/m-p/682505#M1059573</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2014-09-24T11:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: current vs previous quarter sales</title>
      <link>https://community.qlik.com/t5/QlikView/current-vs-previous-quarter-sales/m-p/682506#M1059574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are using&lt;/P&gt;&lt;P&gt;=Ceil(num(month(max(QUARTER_DATE)-1))/3) as prior quarter&lt;/P&gt;&lt;P&gt;max(QUARTER_DATE)-1 will give you a date just one day older than the max date so the date is having the same quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may try this for your vPriorQuarter variable expression&lt;/P&gt;&lt;P&gt;=Ceil(num(month(max(QUARTER_DATE)))/3)-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: one more thing I found is that the Year is not considered while comparing quarters. is that intentional.&lt;/P&gt;&lt;P&gt;right now your chart will compare the total value of Q1 from all possible year to Q2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/current-vs-previous-quarter-sales/m-p/682506#M1059574</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2014-09-24T11:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: current vs previous quarter sales</title>
      <link>https://community.qlik.com/t5/QlikView/current-vs-previous-quarter-sales/m-p/682507#M1059575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vPriorQuarter needs to be calculate differently and you need to calculate the year of the previous quarter too. See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/current-vs-previous-quarter-sales/m-p/682507#M1059575</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-24T11:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: current vs previous quarter sales</title>
      <link>https://community.qlik.com/t5/QlikView/current-vs-previous-quarter-sales/m-p/682508#M1059576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you so much for the help !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 12:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/current-vs-previous-quarter-sales/m-p/682508#M1059576</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2014-09-24T12:10:17Z</dc:date>
    </item>
  </channel>
</rss>

