<?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 load data in variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-load-data-in-variable/m-p/861388#M660063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seems to be something with your excel file. If I try it with an inline file it seems to work fine:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85467_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 May 2015 03:54:38 GMT</pubDate>
    <dc:creator>danieloberbilli</dc:creator>
    <dc:date>2015-05-01T03:54:38Z</dc:date>
    <item>
      <title>How load data in variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-data-in-variable/m-p/861385#M660060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I receive 2 type of files I want to determine file type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First type (1 column - Department, 2 - Customer)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Second type (1 column - Customer).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I try do this by following code:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt; A AS SOURCE_TYPE&lt;/P&gt;&lt;P&gt;FROM [$(vFile)]&amp;nbsp; &lt;/P&gt;&lt;P&gt;(ooxml, no labels, header is 9 lines)&lt;/P&gt;&lt;P&gt;WHERE recno() = 1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LET ColumnName = peek('SOURCE_TYPE', 0, 'Type');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LET FileType = WildMatch('$ColumnName','Department','Customer');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I load data only to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;SOURCE_TYPE and wildmatch function doesn't return value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also I tried use this code, but had the same result&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Temp:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A AS Type&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(vFile)]&lt;/P&gt;&lt;P&gt;(ooxml, no labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD concat(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Type&lt;/SPAN&gt;,'|') as TypeList Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Temp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDep1 = Match (peek('&lt;SPAN style="font-size: 13.3333330154419px;"&gt;TypeList&lt;/SPAN&gt;'), '&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Department&lt;/SPAN&gt;','&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Customer&lt;/SPAN&gt;');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 02:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-data-in-variable/m-p/861385#M660060</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-05-01T02:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: How load data in variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-data-in-variable/m-p/861386#M660061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all I think you need to have brackets around ColumnName:&lt;/P&gt;&lt;P&gt;LET FileType = WildMatch('$(ColumnName)','Department','Customer');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and second: the field SOURCE_TYPE has the value or string 'A' -as you defined it in the script...so there wont be any match if you are searching for strings like 'Department' or 'Customer'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 02:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-data-in-variable/m-p/861386#M660061</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-05-01T02:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: How load data in variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-data-in-variable/m-p/861387#M660062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A is column name.&lt;/P&gt;&lt;P&gt;I load data from column A from 1 line and for first type this data eq 'Department' and for second 'Customer'.&lt;/P&gt;&lt;P&gt;I can't understood, why this data doesn't load in ColumnName variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 03:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-data-in-variable/m-p/861387#M660062</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-05-01T03:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How load data in variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-data-in-variable/m-p/861388#M660063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seems to be something with your excel file. If I try it with an inline file it seems to work fine:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85467_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 03:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-data-in-variable/m-p/861388#M660063</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-05-01T03:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: How load data in variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-data-in-variable/m-p/861389#M660064</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 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;A AS SOURCE_TYPE&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM [$(vFile)] &lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, &lt;STRONG&gt;no labels, header is 9 lines&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;WHERE recno() = 1&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;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;LET ColumnName = peek('SOURCE_TYPE', &lt;STRONG&gt;0&lt;/STRONG&gt;, 'Type');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET FileType = WildMatch('$ColumnName','Department','Customer');&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the frame of your "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vFile" source ? Does-it fit with "&lt;STRONG&gt;no labels&lt;/STRONG&gt;" ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 07:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-data-in-variable/m-p/861389#M660064</guid>
      <dc:creator />
      <dc:date>2015-05-01T07:06:13Z</dc:date>
    </item>
  </channel>
</rss>

