<?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: Group By and Having Clause in Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-By-and-Having-Clause-in-Qlikview/m-p/1429238#M804086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, there is no direct way to implement Having in QlikView script... you can use Preceding load to do this (a nested query)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Count &amp;gt; 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load EMP_ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(EMP_ID) as Count,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Room_No&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Match(Ranking, 1, 2, 4, 5)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Emp_ID, Room_No;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2017 13:49:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-07T13:49:48Z</dc:date>
    <item>
      <title>Group By and Having Clause in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-and-Having-Clause-in-Qlikview/m-p/1429237#M804085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; May I know how can i implement the group by and having clause on Qlikview. I have a situation where i need to identify the number of records that share same resource with different rankings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranking: 1,2,4,5&lt;/P&gt;&lt;P&gt;EMP_ID&lt;/P&gt;&lt;P&gt;Room_No&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to identify all the EMP_ID's that share same common Room_No, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp; EMP_ID's with ranking 1 &amp;amp; 5 that share same Room_No&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMP_ID's with ranking 2 &amp;amp; 4 that share same Room_No&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select EMP_ID, count(EMP_ID), Room_No&lt;/P&gt;&lt;P&gt;from Table1&lt;/P&gt;&lt;P&gt;where Ranking IN (1,2,4,5)&lt;/P&gt;&lt;P&gt;group by room_no&lt;/P&gt;&lt;P&gt;having count(EMP_ID) &amp;gt; 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I achieve this on Qlikview or is the above SQL query correct ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-and-Having-Clause-in-Qlikview/m-p/1429237#M804085</guid>
      <dc:creator>remo0017</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Group By and Having Clause in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-and-Having-Clause-in-Qlikview/m-p/1429238#M804086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, there is no direct way to implement Having in QlikView script... you can use Preceding load to do this (a nested query)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Count &amp;gt; 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load EMP_ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(EMP_ID) as Count,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Room_No&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Match(Ranking, 1, 2, 4, 5)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Emp_ID, Room_No;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 13:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-and-Having-Clause-in-Qlikview/m-p/1429238#M804086</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-07T13:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Group By and Having Clause in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-and-Having-Clause-in-Qlikview/m-p/1429239#M804087</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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Table:&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; font-family: inherit;"&gt;LOAD *&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; font-family: inherit;"&gt;Where Count &amp;gt; 1;&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; font-family: inherit;"&gt;Load &lt;/STRONG&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;Count(EMP_ID) as Count,&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; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Room_No&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; font-family: inherit;"&gt;FROM ....&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; font-family: inherit;"&gt;Where Match(Ranking, 1, 2, 4, 5)&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; font-family: inherit;"&gt;Group By Room_No;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 13:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-and-Having-Clause-in-Qlikview/m-p/1429239#M804087</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-07T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Group By and Having Clause in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-and-Having-Clause-in-Qlikview/m-p/1429240#M804088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Where Count &amp;gt; 1;&lt;/P&gt;&lt;P&gt;Load Count(EMP_ID) as Count,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Room_No&lt;/P&gt;&lt;P&gt;FROM ....&lt;/P&gt;&lt;P&gt;Where Match(Ranking, 1, 2, 4, 5)&lt;/P&gt;&lt;P&gt;Group By Room_No;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above statement how does this work without FROMclause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Where Count &amp;gt; 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlikview so please bear with me if its a dumb question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 14:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-and-Having-Clause-in-Qlikview/m-p/1429240#M804088</guid>
      <dc:creator>remo0017</dc:creator>
      <dc:date>2017-11-07T14:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Group By and Having Clause in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-and-Having-Clause-in-Qlikview/m-p/1429241#M804089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No question is dumb &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;... Read about &lt;A href="https://community.qlik.com/qlik-blogpost/2972"&gt;Preceding Load&lt;/A&gt; and you will understand how is it working....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 14:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-and-Having-Clause-in-Qlikview/m-p/1429241#M804089</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-07T14:03:59Z</dc:date>
    </item>
  </channel>
</rss>

