<?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: Variable creation for use in Where Clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-creation-for-use-in-Where-Clause/m-p/62894#M605460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try where exists function soemthing like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;ComponentMappingNull:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load &lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;TQ_LibItem &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;From table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;T1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;Load *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;from Source where exists( &lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;TQ_LibItem , &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;[Library Item Identifier]);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;Drop Table &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;ComponentMappingNull;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2018 07:42:38 GMT</pubDate>
    <dc:creator>tamilarasu</dc:creator>
    <dc:date>2018-06-06T07:42:38Z</dc:date>
    <item>
      <title>Variable creation for use in Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-creation-for-use-in-Where-Clause/m-p/62893#M605459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi world,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need a hand creating a variable to use in a Where clause...&amp;nbsp; This is to replace this current where clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Match([Library Item Identifier],'cychs-bls-skills-assessment','cychs-immunisation-progam-nurse-update-2015','cychs-immunisation-program-nurse-assessment-2015','cychs-ipn-assessment-' (it goes for longer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The items that are manually written in are all contained within a column from a table called ComponentMappingNull.&amp;nbsp; Here is the column name and the results within:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 280px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;TQ_LibItem&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;cychs-bls-skills-assessment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;cychs-immunisation-progam-nurse-update-2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;cychs-immunisation-program-nurse-assessment-2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;cychs-ipn-assessment-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;cychs-ipn-assessment-2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;cychs-ipn-assessment-2015-2016__&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;cychs-ipn-assessment-2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;cychs-ipn-assessment-2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;cychs-medication-library-item-1yr-auto-assign-2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;cymhs-bls&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;cymhs-medication-assessment-community&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;lcch-medication-assessment-face-to-face&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;LCCH-pbls-paediatric-basic-life-support-assessment&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I essentially don't want to have to update the where clause script everytime a new value appears in the TQ_LibItem column from the ComponentMappingNull table like I do now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would this variable or script be written?&amp;nbsp; If that's at all possible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Carl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 07:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-creation-for-use-in-Where-Clause/m-p/62893#M605459</guid>
      <dc:creator>blunckc1</dc:creator>
      <dc:date>2018-06-06T07:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Variable creation for use in Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-creation-for-use-in-Where-Clause/m-p/62894#M605460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try where exists function soemthing like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;ComponentMappingNull:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load &lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;TQ_LibItem &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;From table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;T1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;Load *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;from Source where exists( &lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;TQ_LibItem , &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;[Library Item Identifier]);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;Drop Table &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;ComponentMappingNull;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 07:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-creation-for-use-in-Where-Clause/m-p/62894#M605460</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-06-06T07:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Variable creation for use in Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-creation-for-use-in-Where-Clause/m-p/62895#M605461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;try something like this :&lt;/P&gt;&lt;P&gt;load your column in a table&lt;/P&gt;&lt;P&gt;assign a variable with this expression&lt;/P&gt;&lt;P&gt;=chr(39) &amp;amp;concat(TQ_LibItem,chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 07:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-creation-for-use-in-Where-Clause/m-p/62895#M605461</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-06-06T07:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Variable creation for use in Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-creation-for-use-in-Where-Clause/m-p/62896#M605462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are still looking for variable method, you can try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ComponentMappingNull:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load Concat(Distinct Chr(39) &amp;amp; TQ_LibItem &amp;amp; Chr(39),',') as TQ_LibItem&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;From Table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'courier new', courier;"&gt;Let vTQ_LibItem = Peek('TQ_LibItem',0,'ComponentMappingNull');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'courier new', courier;"&gt;DROP Table ComponentMappingNull;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'courier new', courier;"&gt;T1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;From Source Where Match(TQ_LibItem , $(vTQ_LibItem));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 08:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-creation-for-use-in-Where-Clause/m-p/62896#M605462</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-06-06T08:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variable creation for use in Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-creation-for-use-in-Where-Clause/m-p/62897#M605463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I overlooked your initial answer, this works!&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My brain is struggling to comprehend that you can call a field name from a previous loaded table in a where clause in a later table without actually specifying which table that field belongs to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if it works, it works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 22:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-creation-for-use-in-Where-Clause/m-p/62897#M605463</guid>
      <dc:creator>blunckc1</dc:creator>
      <dc:date>2018-06-06T22:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variable creation for use in Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-creation-for-use-in-Where-Clause/m-p/62898#M605464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, Carl. I thought you wanted use variable in match function. So I posted the second solution. Happy Friday! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 06:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-creation-for-use-in-Where-Clause/m-p/62898#M605464</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-06-08T06:32:07Z</dc:date>
    </item>
  </channel>
</rss>

