<?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: compare selected Quarter with previous Quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/compare-selected-Quarter-with-previous-Quarter/m-p/372670#M138571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Yojas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used one of the method of calculating previous qtr. I hope the attach application helps you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2012 12:49:23 GMT</pubDate>
    <dc:creator>deepakk</dc:creator>
    <dc:date>2012-06-28T12:49:23Z</dc:date>
    <item>
      <title>compare selected Quarter with previous Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/compare-selected-Quarter-with-previous-Quarter/m-p/372669#M138570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to compare Selected Quarter with Previous Quarter using Set Analysis. Can any1 help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Yojas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 12:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-selected-Quarter-with-previous-Quarter/m-p/372669#M138570</guid>
      <dc:creator />
      <dc:date>2012-06-28T12:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: compare selected Quarter with previous Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/compare-selected-Quarter-with-previous-Quarter/m-p/372670#M138571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Yojas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used one of the method of calculating previous qtr. I hope the attach application helps you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 12:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-selected-Quarter-with-previous-Quarter/m-p/372670#M138571</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2012-06-28T12:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: compare selected Quarter with previous Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/compare-selected-Quarter-with-previous-Quarter/m-p/372671#M138572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Yojas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 06:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-selected-Quarter-with-previous-Quarter/m-p/372671#M138572</guid>
      <dc:creator />
      <dc:date>2012-06-29T06:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: compare selected Quarter with previous Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/compare-selected-Quarter-with-previous-Quarter/m-p/372672#M138573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really efficient way to do this calculation.&amp;nbsp; If you have strings in your Qtr field, simply use this slight code change from the App - &lt;/P&gt;&lt;P&gt;Sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FiscalQuarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Maxstring(FiscalQuarter))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 05:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-selected-Quarter-with-previous-Quarter/m-p/372672#M138573</guid>
      <dc:creator />
      <dc:date>2013-06-14T05:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: compare selected Quarter with previous Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/compare-selected-Quarter-with-previous-Quarter/m-p/372673#M138574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wanted to add to the post and thank Deepak, who ended my full-day search through the community for the solution to a similar problem. As mine was a bit more complex - I could not work with a Year Dimension in my Pivot Chart and had to get the "Year" information into the Quarter selection. I adapted the variable approach like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Created a List box based on my dates but used an expression to condense to Quarters, so to a user it would appear as a single-selection, whereas all days of the quarter are selected.&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;amp;'_Q'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/3) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Defined a variable &lt;STRONG&gt;&lt;EM&gt;vYQ-1&lt;/EM&gt;&lt;/STRONG&gt; based on the current date selection, calculated one quarter back (minus 92 days) and used Year Function: &lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-92,'DD.MM.YYYY'))&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;3. Defined a variable &lt;STRONG&gt;&lt;EM&gt;vQ-1&lt;/EM&gt;&lt;/STRONG&gt; based on the current date selection, calculated one quarter back (minus 92 days) and used the function to get: =&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-92,'DD.MM.YYYY'))/3) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;4. Used Set Analysis in the chart to get the "Previous Quarter" from the current selection =&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vYQ-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_Qtr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vQ-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 16:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-selected-Quarter-with-previous-Quarter/m-p/372673#M138574</guid>
      <dc:creator />
      <dc:date>2013-09-11T16:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: compare selected Quarter with previous Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/compare-selected-Quarter-with-previous-Quarter/m-p/372674#M138575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing! This helped me tremendously!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 20:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-selected-Quarter-with-previous-Quarter/m-p/372674#M138575</guid>
      <dc:creator>nevets22</dc:creator>
      <dc:date>2017-08-24T20:02:16Z</dc:date>
    </item>
  </channel>
</rss>

