<?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: Storing values  in a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318652#M843429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you share excel file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, this is working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET Var = '1','2','3';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field1 , Field2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample, 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample,4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;] Where WildMatch(&lt;SPAN style="font-size: 13.3333px;"&gt;Field2&lt;/SPAN&gt;, $(Var));&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Apr 2017 08:54:58 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-04-14T08:54:58Z</dc:date>
    <item>
      <title>Storing values  in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318649#M843426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi please could someone help me with the following question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an excel file that I am loading account numbers into qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The account numbers are 10 digit long numbers and the count of the numbers can change through a user updating the excel file. I would like to store the numbers as follows in a variable . '1234657890', '1234567890', '1234567891' to use later in a where clause for a sql query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My where clause would be like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where acc No in ($myvariable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would this be possible and if so please could someone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&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/Storing-values-in-a-variable/m-p/1318649#M843426</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Storing values  in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318650#M843427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set vVariable = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'1234657890', '1234567890', '1234567891'&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the load statement use &lt;/P&gt;&lt;P&gt;where Match(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;accNo &lt;/SPAN&gt;,'$(&lt;SPAN style="font-size: 13.3333px;"&gt;vVariable&lt;/SPAN&gt;)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to save the values dynamically into the variable, you can go with "Let" instead of 'Set'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 07:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318650#M843427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-14T07:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Storing values  in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318651#M843428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply Shiva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appologies i should have ben clearer in my question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the values that i want to get stored in a variable are loaded in as follows&lt;/P&gt;&lt;P&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;@1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Main Account Id"&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;C&gt;&lt;BR /&gt;(&lt;/C&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;no&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Sheet1$); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;there can be any amount of account id's stored in this excel file. I need the values that are loaded in as "Main Account id"&amp;nbsp; stored in a variable. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;thanks in advance &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 07:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318651#M843428</guid>
      <dc:creator />
      <dc:date>2017-04-14T07:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Storing values  in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318652#M843429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you share excel file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, this is working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET Var = '1','2','3';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field1 , Field2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample, 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample,4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;] Where WildMatch(&lt;SPAN style="font-size: 13.3333px;"&gt;Field2&lt;/SPAN&gt;, $(Var));&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 08:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318652#M843429</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-14T08:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Storing values  in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318653#M843430</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;&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; Concat(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;@1, ', ')&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Main_Account_Id_list&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;C&gt;&lt;BR /&gt;(&lt;/C&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;no&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Sheet1$); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;let vlist = Peek('&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Main_Account_Id_list&lt;/SPAN&gt;', 0);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 09:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318653#M843430</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2017-04-14T09:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Storing values  in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318654#M843431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys, All your answers were very helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 09:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318654#M843431</guid>
      <dc:creator />
      <dc:date>2017-04-14T09:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Storing values  in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318655#M843432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;If you want to save the values dynamically into the variable, you can go with "Let" instead of 'Set'&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;LET Won't consider the static text. you may forget. Read this &lt;A href="http://www.qlikviewaddict.com/2012/02/set-vs-let.html" style="font-size: 10pt;" title="http://www.qlikviewaddict.com/2012/02/set-vs-let.html"&gt;QlikView Addict: SET vs. LET&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 09:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-values-in-a-variable/m-p/1318655#M843432</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-14T09:35:31Z</dc:date>
    </item>
  </channel>
</rss>

