<?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: Conditional Load or Where in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Load-or-Where/m-p/319885#M708845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rob.&amp;nbsp; That's just the steer I needed to get this one cracked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2011 08:37:18 GMT</pubDate>
    <dc:creator>gsbeaton</dc:creator>
    <dc:date>2011-09-05T08:37:18Z</dc:date>
    <item>
      <title>Conditional Load or Where</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Load-or-Where/m-p/319883#M708843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to conditionally specify a WHERE statement in QlikView - the following code snippet won't work, but it gives you an idea of what I want to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * FROM&amp;nbsp; STDQVD\TRANSACTIONS.qvd (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if([Allow Sensitive Transactions]='Y'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,WHERE NOT EXISTS([Transaction Detail Code],1212,1234,1909)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas gratefully received.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 13:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Load-or-Where/m-p/319883#M708843</guid>
      <dc:creator>gsbeaton</dc:creator>
      <dc:date>2011-09-02T13:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Load or Where</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Load-or-Where/m-p/319884#M708844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, possible. Here's one way. "Allow Sensitive Transactions" must be a variable -- perhaps loaded from another table. It can't be part of the transactions.qvd you are loading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not syntax checked, but will give you the idea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vCondition = if(vAllowSensitiveTransactions = 'Y',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,' '&amp;nbsp; // Allow all trans&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;, 'WHERE NOT match([Transaction Detail Code], 1212, 1234, 1909)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * FROM&amp;nbsp; STDQVD\TRANSACTIONS.qvd (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$(vCondition);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 14:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Load-or-Where/m-p/319884#M708844</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-09-02T14:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Load or Where</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Load-or-Where/m-p/319885#M708845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rob.&amp;nbsp; That's just the steer I needed to get this one cracked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 08:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Load-or-Where/m-p/319885#M708845</guid>
      <dc:creator>gsbeaton</dc:creator>
      <dc:date>2011-09-05T08:37:18Z</dc:date>
    </item>
  </channel>
</rss>

