<?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 between two quartes for multiple fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-between-two-quartes-for-multiple-fields/m-p/438130#M1152425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, the bar charts should have side by side comparison of the qtr selected with previous year same quarter.&lt;/P&gt;&lt;P&gt;for example: qtr3 of 2011 and qtr3 of 2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try with the following,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Dimension as&amp;nbsp; GroupedItem (Ethnic_Origin, Emp_Category, Exemp_nonExempt)&lt;/P&gt;&lt;P&gt;Expression Qtr #Prev Year as &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;P&gt;UNT&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;QuarterID = {&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;$(=Max(QuarterID) - 4) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Date = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(vSetCurrentYear)), Max([Month (#)]), Day(Max($(vSetCurrentYear)))),'M/D/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;Year = ,&lt;BR /&gt;Quarter = ,&lt;BR /&gt;Period = ,&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Period (#)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; = ,&lt;BR /&gt;Month = &amp;gt;} DISTINCT PERSON_ID) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression Qtr# Cur Year as&lt;/P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&amp;nbsp; &lt;P&gt;COUNT({&amp;lt;Date={"&amp;gt;=$(=Date(Quarterstart(Vmaxdate)))"}&amp;gt;} DISTINCT PERSON_ID)&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; Both cur and prev shows the same value.&amp;nbsp; Please help.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42631" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/42631_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jun 2013 19:12:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-13T19:12:36Z</dc:date>
    <item>
      <title>Comparing between two quartes for multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-between-two-quartes-for-multiple-fields/m-p/438127#M1152422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get data from Oracle HR.&amp;nbsp; The fields are for example, &lt;/P&gt;&lt;P&gt;1. Exempt_NonExempt ( Values can be Exempt or NonExempt)&lt;/P&gt;&lt;P&gt;2. Sex &lt;/P&gt;&lt;P&gt;3. Emp_Category (Fulltime - regular, fulltime - Contract, parttime - Regurlar, partime-contract)&lt;/P&gt;&lt;P&gt;4. Age&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user will pick a quarter and a year and the chart should show the count for the above fields in a bar chart or any other chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to accomplish this.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks for all your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 18:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-between-two-quartes-for-multiple-fields/m-p/438127#M1152422</guid>
      <dc:creator />
      <dc:date>2013-06-04T18:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing between two quartes for multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-between-two-quartes-for-multiple-fields/m-p/438128#M1152423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; PFA first reload the application then show the result hope it is helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirmal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 05:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-between-two-quartes-for-multiple-fields/m-p/438128#M1152423</guid>
      <dc:creator />
      <dc:date>2013-06-05T05:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing between two quartes for multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-between-two-quartes-for-multiple-fields/m-p/438129#M1152424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rsuryan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you want can be accomplished through Set Analysis.&lt;/P&gt;&lt;P&gt;I've made two charts, one of which counts data only for the maximum year in current selections and the other for the year before that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the fields are dimensions for the chart, it's better to have one chart for each field or group them via drill-down or cyclic groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also changed your master calendar a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read more about how Set Analysis works in QlikView's aggregation functions here: &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/docs/DOC-1867" title="http://community.qlik.com/docs/DOC-1867"&gt;http://community.qlik.com/docs/DOC-1867&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 08:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-between-two-quartes-for-multiple-fields/m-p/438129#M1152424</guid>
      <dc:creator />
      <dc:date>2013-06-05T08:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing between two quartes for multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-between-two-quartes-for-multiple-fields/m-p/438130#M1152425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, the bar charts should have side by side comparison of the qtr selected with previous year same quarter.&lt;/P&gt;&lt;P&gt;for example: qtr3 of 2011 and qtr3 of 2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try with the following,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Dimension as&amp;nbsp; GroupedItem (Ethnic_Origin, Emp_Category, Exemp_nonExempt)&lt;/P&gt;&lt;P&gt;Expression Qtr #Prev Year as &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;P&gt;UNT&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;QuarterID = {&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;$(=Max(QuarterID) - 4) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Date = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(vSetCurrentYear)), Max([Month (#)]), Day(Max($(vSetCurrentYear)))),'M/D/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;Year = ,&lt;BR /&gt;Quarter = ,&lt;BR /&gt;Period = ,&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Period (#)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; = ,&lt;BR /&gt;Month = &amp;gt;} DISTINCT PERSON_ID) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression Qtr# Cur Year as&lt;/P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&amp;nbsp; &lt;P&gt;COUNT({&amp;lt;Date={"&amp;gt;=$(=Date(Quarterstart(Vmaxdate)))"}&amp;gt;} DISTINCT PERSON_ID)&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; Both cur and prev shows the same value.&amp;nbsp; Please help.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42631" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/42631_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 19:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-between-two-quartes-for-multiple-fields/m-p/438130#M1152425</guid>
      <dc:creator />
      <dc:date>2013-06-13T19:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing between two quartes for multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-between-two-quartes-for-multiple-fields/m-p/438131#M1152426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on the picture from the last post. You can just create two expressions, one for the current year, one for the last. When the user selects a quarter, or more than one, one expression will show information for the current year's quarters, the second for the previous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check lowest bar chart in the file attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 20:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-between-two-quartes-for-multiple-fields/m-p/438131#M1152426</guid>
      <dc:creator />
      <dc:date>2013-06-13T20:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing between two quartes for multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-between-two-quartes-for-multiple-fields/m-p/438132#M1152427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's already exactly what the model I posted for you does.&lt;/P&gt;&lt;P&gt;Just select a quarter or several. You can put the expressions in the same chart if you want to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT({&amp;lt;Year = {$(=max(Year))}&amp;gt;} DISTINCT PERSON_ID) //selected year/last year in selections&lt;/P&gt;&lt;P&gt;COUNT({&amp;lt;Year = {$(=max(Year)-1)}&amp;gt;} DISTINCT PERSON_ID) //the year before the above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 07:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-between-two-quartes-for-multiple-fields/m-p/438132#M1152427</guid>
      <dc:creator />
      <dc:date>2013-06-14T07:17:03Z</dc:date>
    </item>
  </channel>
</rss>

