<?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 How to Use Having Function in where Clause - Tricky in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Use-Having-Function-in-where-Clause-Tricky/m-p/202407#M60127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have done but want you all to please share your though process to make the code better&lt;/P&gt;&lt;P&gt;any other ideas &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date as Key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// date(Date,'DD/MM/YYYY')&amp;amp;'-'&amp;amp;Plant as Key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plant,&lt;/P&gt;&lt;P&gt;Product,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Vendor,&lt;/P&gt;&lt;P&gt;Amt&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is [Raw Data$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left Join(A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date as Key,&lt;/P&gt;&lt;P&gt;if(count(Plant) &amp;gt; 1,date(Date,'DD/MM/YYYY')) as NewDate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Plant as PlantNew,&lt;/P&gt;&lt;P&gt;sum(Amt) as Amt1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident A&lt;/P&gt;&lt;P&gt;Group By Date&lt;/P&gt;&lt;P&gt;Order By Date asc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;'' as junk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident A&lt;/P&gt;&lt;P&gt;where Date = NewDate;&lt;/P&gt;&lt;P&gt;DROP Table A;&lt;/P&gt;&lt;P&gt;DROP Field junk;&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Feb 2011 09:58:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-07T09:58:58Z</dc:date>
    <item>
      <title>How to Use Having Function in where Clause - Tricky</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Use-Having-Function-in-where-Clause-Tricky/m-p/202406#M60126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need your help &amp;amp; guidance in this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How do we use Having function where i would like to use count(plantcode) &amp;gt;1 etc..&lt;/P&gt;&lt;P&gt;I have attached a sample excel file which explains my Requirement.&lt;/P&gt;&lt;P&gt;1st Sheet is the raw data to be imported into Qv &amp;amp; the 2nd sheet explains the output required by me.&lt;/P&gt;&lt;P&gt;Can you all guys throw some light on this &amp;amp; will be of gr8 help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/63623.Help-Report.xls:550:0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srini&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 08:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Use-Having-Function-in-where-Clause-Tricky/m-p/202406#M60126</guid>
      <dc:creator />
      <dc:date>2011-02-07T08:28:39Z</dc:date>
    </item>
    <item>
      <title>How to Use Having Function in where Clause - Tricky</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Use-Having-Function-in-where-Clause-Tricky/m-p/202407#M60127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have done but want you all to please share your though process to make the code better&lt;/P&gt;&lt;P&gt;any other ideas &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date as Key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// date(Date,'DD/MM/YYYY')&amp;amp;'-'&amp;amp;Plant as Key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plant,&lt;/P&gt;&lt;P&gt;Product,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Vendor,&lt;/P&gt;&lt;P&gt;Amt&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is [Raw Data$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left Join(A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date as Key,&lt;/P&gt;&lt;P&gt;if(count(Plant) &amp;gt; 1,date(Date,'DD/MM/YYYY')) as NewDate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Plant as PlantNew,&lt;/P&gt;&lt;P&gt;sum(Amt) as Amt1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident A&lt;/P&gt;&lt;P&gt;Group By Date&lt;/P&gt;&lt;P&gt;Order By Date asc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;'' as junk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident A&lt;/P&gt;&lt;P&gt;where Date = NewDate;&lt;/P&gt;&lt;P&gt;DROP Table A;&lt;/P&gt;&lt;P&gt;DROP Field junk;&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 09:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Use-Having-Function-in-where-Clause-Tricky/m-p/202407#M60127</guid>
      <dc:creator />
      <dc:date>2011-02-07T09:58:58Z</dc:date>
    </item>
  </channel>
</rss>

