<?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 Using a Select within a Where in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-Select-within-a-Where/m-p/236059#M87278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone please tell me how to include a where condition which itself contains a Select? I have written the code below but the final WHERE causes a 'Garbage after statement'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;// Load the skills lookup data to be able to display descriptions rather than ID's&lt;BR /&gt;Skill_Groups:&lt;BR /&gt;LOAD [Discipline ID],&lt;BR /&gt;Discipline,&lt;BR /&gt;[Capability ID],&lt;BR /&gt;Capability,&lt;BR /&gt;[Skill ID],&lt;BR /&gt;Skill&lt;BR /&gt;FROM&lt;BR /&gt;[Skills Data.xls]&lt;BR /&gt;(biff, embedded labels, table is Sheet2$);&lt;BR /&gt;// Load the ratings data, although this needs to be transposed so that each row contains a single rating. Note also&lt;BR /&gt;// that this data contains ratings at the Skill, Capability and Discipline level also&lt;BR /&gt;Report_Base:&lt;BR /&gt;CrossTable([Skill ID ALL], Rating)&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM&lt;BR /&gt;[Skills Data.xls]&lt;BR /&gt;(biff, embedded labels, header is 1 lines, table is Sheet1$);&lt;BR /&gt;// Filter out the ratings at Discipline and Capability level&lt;BR /&gt;Report:&lt;BR /&gt;LOAD [Skill ID ALL] as [Skill ID],&lt;BR /&gt;Rating&lt;BR /&gt;resident Report_Base&lt;BR /&gt;WHERE [Skill ID ALL] not in (select [Discipline ID] resident Skill_Groups);&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2009 21:16:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-09T21:16:17Z</dc:date>
    <item>
      <title>Using a Select within a Where</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Select-within-a-Where/m-p/236059#M87278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone please tell me how to include a where condition which itself contains a Select? I have written the code below but the final WHERE causes a 'Garbage after statement'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;// Load the skills lookup data to be able to display descriptions rather than ID's&lt;BR /&gt;Skill_Groups:&lt;BR /&gt;LOAD [Discipline ID],&lt;BR /&gt;Discipline,&lt;BR /&gt;[Capability ID],&lt;BR /&gt;Capability,&lt;BR /&gt;[Skill ID],&lt;BR /&gt;Skill&lt;BR /&gt;FROM&lt;BR /&gt;[Skills Data.xls]&lt;BR /&gt;(biff, embedded labels, table is Sheet2$);&lt;BR /&gt;// Load the ratings data, although this needs to be transposed so that each row contains a single rating. Note also&lt;BR /&gt;// that this data contains ratings at the Skill, Capability and Discipline level also&lt;BR /&gt;Report_Base:&lt;BR /&gt;CrossTable([Skill ID ALL], Rating)&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM&lt;BR /&gt;[Skills Data.xls]&lt;BR /&gt;(biff, embedded labels, header is 1 lines, table is Sheet1$);&lt;BR /&gt;// Filter out the ratings at Discipline and Capability level&lt;BR /&gt;Report:&lt;BR /&gt;LOAD [Skill ID ALL] as [Skill ID],&lt;BR /&gt;Rating&lt;BR /&gt;resident Report_Base&lt;BR /&gt;WHERE [Skill ID ALL] not in (select [Discipline ID] resident Skill_Groups);&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 21:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Select-within-a-Where/m-p/236059#M87278</guid>
      <dc:creator />
      <dc:date>2009-11-09T21:16:17Z</dc:date>
    </item>
    <item>
      <title>Using a Select within a Where</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Select-within-a-Where/m-p/236060#M87279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;Do you test:&lt;BR /&gt;Report:&lt;BR /&gt;Load&lt;/P&gt;&lt;P&gt;[Skill ID All] as [Skill ID],&lt;BR /&gt;Reating&lt;BR /&gt;Resindet Report_Base&lt;BR /&gt;Where Not Exists( [Discipline ID], [Skill ID All]);&lt;BR /&gt;&lt;BR /&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 21:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Select-within-a-Where/m-p/236060#M87279</guid>
      <dc:creator>GabrielAraya</dc:creator>
      <dc:date>2009-11-09T21:28:23Z</dc:date>
    </item>
    <item>
      <title>Using a Select within a Where</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Select-within-a-Where/m-p/236061#M87280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using the last where clause, use the following&lt;/P&gt;&lt;P&gt;Where not Exists ( 'Discipline ID',[Skill ID ALL]);&lt;/P&gt;&lt;P&gt;That should work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 21:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Select-within-a-Where/m-p/236061#M87280</guid>
      <dc:creator>vidyut</dc:creator>
      <dc:date>2009-11-09T21:30:53Z</dc:date>
    </item>
  </channel>
</rss>

