<?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: Count expression to compare quarter by quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-expression-to-compare-quarter-by-quarter/m-p/1291565#M403734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the only values are '1ST HALF' and '2ND HALF' you can use MaxString() to get the last value sorted alphabetically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jan 2017 18:11:59 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2017-01-21T18:11:59Z</dc:date>
    <item>
      <title>Count expression to compare quarter by quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-to-compare-quarter-by-quarter/m-p/1291563#M403732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Based on this script, &lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am able to get new item id of current year compare to last year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;=Count(DISTINCT {&amp;lt;item_id = e({&amp;lt;item_id = {"=Count({&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 28.6924px; font-family: inherit; color: #ff0000;"&gt;1&lt;/SPAN&gt;&amp;lt;batch_year = {'&amp;lt;$(=Max(batch_year))'}&amp;gt;} item_id) &amp;gt; 0"}&amp;gt;})&amp;gt;} item_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;What to change if i want compare it instead of by year , compare it by quarterly. ?&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1st , I select year 2016, then I select 2nd half, &lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;When I click on the 2nd half, it will compare with 1st quarter.it will compare any new item ID in the 2nd half compare to 1st half.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have the field called - batch_type : with data 1ST HALF , 2ND HALF. can max(batch_type) , but is not a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 14:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-to-compare-quarter-by-quarter/m-p/1291563#M403732</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2017-01-21T14:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression to compare quarter by quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-to-compare-quarter-by-quarter/m-p/1291564#M403733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post some screenshots of what you want to achieve?? and sample data??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 15:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-to-compare-quarter-by-quarter/m-p/1291564#M403733</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-01-21T15:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count expression to compare quarter by quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Count-expression-to-compare-quarter-by-quarter/m-p/1291565#M403734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the only values are '1ST HALF' and '2ND HALF' you can use MaxString() to get the last value sorted alphabetically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 18:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-expression-to-compare-quarter-by-quarter/m-p/1291565#M403734</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-01-21T18:11:59Z</dc:date>
    </item>
  </channel>
</rss>

