<?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: Comparison based on the group of fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparison-based-on-the-group-of-fields/m-p/1456224#M435237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(SubStringCount(Concat(TOTAL &amp;lt;School, Class&amp;gt; Aggr(If(Excellent &amp;gt; Good, 'yes', 0), School, Class, Year), '|'), 'yes') &amp;gt;= 2, 'TRUE')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188390_Capture.PNG" style="height: 203px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Dec 2017 17:15:26 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-12-28T17:15:26Z</dc:date>
    <item>
      <title>Comparison based on the group of fields</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-based-on-the-group-of-fields/m-p/1456223#M435236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have got a dummy data that I have created for checking certain functionality in qlikview, but am not sure what is the best way to achieve it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have some information about the schools - classes and the yearly number of excellent or good grades (see attached file). For each year and for each class in the school I perform a comparison between excellent and good grades. If there are more excellent grades, then the flag is &lt;STRONG&gt;yes&lt;/STRONG&gt; and '0' - otherwise. This works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I want to see if there is the case, when a class had a &lt;STRONG&gt;yes&lt;/STRONG&gt; - flag for at least two consecutive years. And if it is the case, then just in additional column add TRUE for the whole class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that the example doesn't make any sense, but I am not able to disclose original data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 12:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-based-on-the-group-of-fields/m-p/1456223#M435236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-28T12:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison based on the group of fields</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-based-on-the-group-of-fields/m-p/1456224#M435237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(SubStringCount(Concat(TOTAL &amp;lt;School, Class&amp;gt; Aggr(If(Excellent &amp;gt; Good, 'yes', 0), School, Class, Year), '|'), 'yes') &amp;gt;= 2, 'TRUE')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188390_Capture.PNG" style="height: 203px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 17:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-based-on-the-group-of-fields/m-p/1456224#M435237</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-28T17:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison based on the group of fields</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-based-on-the-group-of-fields/m-p/1456225#M435238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(SubStringCount(Concat(TOTAL &amp;lt;School, Class&amp;gt; Aggr(If(Excellent &amp;gt; Good and Above(Excellent) &amp;gt; Above(Good) and Year = Above(Year) + 1, 'yes', 0), School, Class, (Year, (NUMERIC))), '|'), 'yes') &amp;gt;= 1, 'TRUE')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG __jive_id="188391" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188391_Capture.PNG" style="height: 204px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression will only work in QV 12 or above..... because of this new feature that came in QV12&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4673"&gt;The sortable Aggr function is finally here!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 17:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-based-on-the-group-of-fields/m-p/1456225#M435238</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-28T17:49:10Z</dc:date>
    </item>
  </channel>
</rss>

