<?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 Variable to condition file table selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-to-condition-file-table-selection/m-p/321966#M708496</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;&lt;/P&gt;&lt;P&gt;I have an application that needs to condition which table(s) to load based on the content of a control table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I loaded the control table and set a variable true/false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variable is true, TABLEA is loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variable is false, TABLEB is loaded and TABLEC is left joined to TABLEB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax escapes me. Can someone please point me in the right direction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Oct 2011 17:35:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-07T17:35:46Z</dc:date>
    <item>
      <title>Variable to condition file table selection</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-condition-file-table-selection/m-p/321966#M708496</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;&lt;/P&gt;&lt;P&gt;I have an application that needs to condition which table(s) to load based on the content of a control table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I loaded the control table and set a variable true/false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variable is true, TABLEA is loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variable is false, TABLEB is loaded and TABLEC is left joined to TABLEB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax escapes me. Can someone please point me in the right direction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 17:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-condition-file-table-selection/m-p/321966#M708496</guid>
      <dc:creator />
      <dc:date>2011-10-07T17:35:46Z</dc:date>
    </item>
    <item>
      <title>Variable to condition file table selection</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-condition-file-table-selection/m-p/321967#M708497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; numeric value of True is -1, False is 0. You may check for these in an IF and LOAD A or B.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 17:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-condition-file-table-selection/m-p/321967#M708497</guid>
      <dc:creator />
      <dc:date>2011-10-07T17:47:24Z</dc:date>
    </item>
    <item>
      <title>Variable to condition file table selection</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-condition-file-table-selection/m-p/321968#M708498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks, for your reply Jasleen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the syntax I was looking for;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF '$(vEPDM)' = 1 then&lt;BR /&gt;Item:&lt;BR /&gt;Load&amp;nbsp; ITNBR;&lt;BR /&gt;SQL Select ITNBR&lt;BR /&gt;FROM S10AE37C.AMFLIB7.ITEMASA;&lt;/P&gt;&lt;P&gt;Elseif '$(vEPDM)' = 0 then&lt;BR /&gt;Item:&lt;BR /&gt;TEMPB:&lt;BR /&gt;Load ITNBR; &lt;BR /&gt;SQL Select ITNBR &lt;BR /&gt;FROM S10AE37C.AMFLIB7.ITMRVA;&lt;/P&gt;&lt;P&gt;Endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 18:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-condition-file-table-selection/m-p/321968#M708498</guid>
      <dc:creator />
      <dc:date>2011-10-07T18:24:13Z</dc:date>
    </item>
  </channel>
</rss>

