<?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: How to use variable in the where clause ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-the-where-clause/m-p/1265362#M870580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can change variable like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt; Var='Chairs,tables';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read this !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 class="post-title entry-title" style="font-size: 24px; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; color: #ff615c;"&gt;SET vs. LET&lt;/H3&gt;&lt;P class="post-header" style="margin: 0 0 1em; color: #000000; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.44px;"&gt;&lt;/P&gt;&lt;P class="post-body entry-content" style="color: #000000; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.44px;"&gt;I got into a conversation with someone today who was struggling to understand the difference between SET and LET. It wasn't the first time I've had this conversation so thought I'd explain it here too in case any QV newbies were also struggling with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET is taken literally and what is on the right of the equals is written into the variable. So writing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="color: blue;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #666666;"&gt;vMyVariable&lt;/SPAN&gt; = 5*2;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would result in vMyVariable containing "5*2".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET is used when you wish QlikView to equate what is on the right of the equals and write the answer into the variable. So writing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;STRONG style="color: blue;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="color: blue;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #666666;"&gt;vMyVariable&lt;/SPAN&gt; = 5*2;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would result in vMyVariable containing "10".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simples!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2016 05:43:45 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2016-11-17T05:43:45Z</dc:date>
    <item>
      <title>How to use variable in the where clause ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-the-where-clause/m-p/1265359#M870574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to restrict the table loading by giving some condition in the where clause. And I need to store the possible values in the variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET Var='Chairs,tables';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;WHERE (Products='$(Var)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i encounter some error in this. Is there any possible way to do this. I need to store the possible values in the variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-the-where-clause/m-p/1265359#M870574</guid>
      <dc:creator>nishanthi_8</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in the where clause ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-the-where-clause/m-p/1265360#M870576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555544; font-family: 'Times New Roman'; font-size: 10.6667px;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555544; font-family: 'Times New Roman'; font-size: 10.6667px;"&gt;---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555544; font-family: 'Times New Roman'; font-size: 10.6667px;"&gt;---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555544; font-family: 'Times New Roman'; font-size: 10.6667px;"&gt;WHERE&amp;nbsp; MIXMATCH&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(Products, $(Var) );&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 05:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-the-where-clause/m-p/1265360#M870576</guid>
      <dc:creator />
      <dc:date>2016-11-17T05:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in the where clause ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-the-where-clause/m-p/1265361#M870578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No nothing is fetched up. The comma and the quotes separation in variable is the thing to be taken care of. I need help in that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 05:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-the-where-clause/m-p/1265361#M870578</guid>
      <dc:creator>nishanthi_8</dc:creator>
      <dc:date>2016-11-17T05:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in the where clause ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-the-where-clause/m-p/1265362#M870580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can change variable like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt; Var='Chairs,tables';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read this !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 class="post-title entry-title" style="font-size: 24px; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; color: #ff615c;"&gt;SET vs. LET&lt;/H3&gt;&lt;P class="post-header" style="margin: 0 0 1em; color: #000000; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.44px;"&gt;&lt;/P&gt;&lt;P class="post-body entry-content" style="color: #000000; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.44px;"&gt;I got into a conversation with someone today who was struggling to understand the difference between SET and LET. It wasn't the first time I've had this conversation so thought I'd explain it here too in case any QV newbies were also struggling with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET is taken literally and what is on the right of the equals is written into the variable. So writing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="color: blue;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #666666;"&gt;vMyVariable&lt;/SPAN&gt; = 5*2;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would result in vMyVariable containing "5*2".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET is used when you wish QlikView to equate what is on the right of the equals and write the answer into the variable. So writing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;STRONG style="color: blue;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="color: blue;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #666666;"&gt;vMyVariable&lt;/SPAN&gt; = 5*2;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would result in vMyVariable containing "10".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simples!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 05:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-the-where-clause/m-p/1265362#M870580</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-11-17T05:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in the where clause ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-the-where-clause/m-p/1265363#M870582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you need a variable to filter the table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you not use an inline load? i.e&lt;/P&gt;&lt;P&gt;See sample below...If you use this, the filter field Products must not be loaded prior to using this...&lt;/P&gt;&lt;P&gt;The filter text (Tables, Chairs) must be exact match as in your table/Case sensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Filter:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Products&lt;BR /&gt; Tables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt; Chairs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YourTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;YourSource...&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="color: #800000;"&gt;Products&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 06:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-the-where-clause/m-p/1265363#M870582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-17T06:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in the where clause ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-the-where-clause/m-p/1265364#M870584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishanthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #ff0000;"&gt;SET Var= 'Chairs' , 'tables' ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;----&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;------&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;--------&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE &lt;STRONG style="color: #ff0000;"&gt;WildMatch&lt;/STRONG&gt;(Products,&lt;STRONG&gt; &lt;SPAN style="color: #ff0000;"&gt;$(Var)&lt;/SPAN&gt;&lt;/STRONG&gt; );&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 06:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-the-where-clause/m-p/1265364#M870584</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-11-17T06:03:21Z</dc:date>
    </item>
  </channel>
</rss>

