<?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 How to selectively read value as variable or as a literal in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-selectively-read-value-as-variable-or-as-a-literal/m-p/1039342#M641432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica',sans-serif; font-size: 10pt; mso-ansi-language: EN;"&gt;I am trying to have some values read as literals while others should be replace by the variable value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica',sans-serif; font-size: 10pt; mso-ansi-language: EN;"&gt;Example Input file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113412_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: black; font-size: 12pt; mso-ansi-language: EN; font-family: 'Calibri',sans-serif;"&gt;So when I do this the first four ID’s come as I want which is literal. However I want the fifth one to show as ‘111’,’222’,’333’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: Times New Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: black; font-size: 12pt; mso-ansi-language: EN; font-family: 'Calibri',sans-serif;"&gt;Variable Output I Get&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: Times New Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: black; font-size: 12pt; mso-ansi-language: EN; font-family: 'Calibri',sans-serif;"&gt;v_ID1 = ‘111’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: black; font-size: 12pt; mso-ansi-language: EN; font-family: 'Calibri',sans-serif;"&gt;v_ID2 = ‘222’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: black; font-size: 12pt; mso-ansi-language: EN; font-family: 'Calibri',sans-serif;"&gt;v_ID3= ‘333’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica',sans-serif; font-size: 10pt; mso-ansi-language: EN;"&gt;v_ID4= ‘444’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica',sans-serif; font-size: 10pt; mso-ansi-language: EN;"&gt;v_ID5= $(v_ID1),$(v_ID2),$(v_ID3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: Times New Roman;"&gt;My script is like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;Test:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 8pt; font-family: Times New Roman;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-size: 8pt;"&gt;Variable&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: gray; font-size: 8pt;"&gt;$(vVariableValue)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 8pt; font-family: Times New Roman;"&gt;//NOTE I do have this variabalized but for the input file examples sake I kept just one example to keep it simpler &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 8pt; font-family: Times New Roman;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Times New Roman;"&gt; &lt;BR /&gt; '..\includes\File1.xlsx'&lt;BR /&gt; (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;table&lt;/SPAN&gt; &lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; Sheet1) ;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: gray; font-size: 8pt;"&gt;vNumberofRows&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;NoOfRows&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; ('Test');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;For&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: gray; font-size: 8pt;"&gt;vI&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-size: 8pt;"&gt;vNumberofRows&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; - 1);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: gray; font-size: 8pt;"&gt;vVariable&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;('Variable',&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-size: 8pt;"&gt;vI&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;,'Test'); &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: gray; font-size: 8pt;"&gt;vValue&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; ('$(vVariableValue)',&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-size: 8pt;"&gt;vI&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;,'Test');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: gray; font-size: 8pt;"&gt;[$(vVariable)]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; ('$(vVariableValue)', &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-size: 8pt;"&gt;vI&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;, 'Test') ;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;Next&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica',sans-serif; font-size: 10pt; mso-ansi-language: EN;"&gt;Do I Need to do some sort of IF logic inside of the loop to treat these differently? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: black; font-size: 12pt; mso-ansi-language: EN; font-family: 'Calibri',sans-serif;"&gt;I just can’t seem to get the syntax to work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Calibri',sans-serif; mso-ansi-language: EN;"&gt;Also note, I am trying to do this without minimal changing of the source excel file format.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Feb 2016 11:59:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-03T11:59:12Z</dc:date>
    <item>
      <title>How to selectively read value as variable or as a literal</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-selectively-read-value-as-variable-or-as-a-literal/m-p/1039342#M641432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica',sans-serif; font-size: 10pt; mso-ansi-language: EN;"&gt;I am trying to have some values read as literals while others should be replace by the variable value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica',sans-serif; font-size: 10pt; mso-ansi-language: EN;"&gt;Example Input file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113412_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: black; font-size: 12pt; mso-ansi-language: EN; font-family: 'Calibri',sans-serif;"&gt;So when I do this the first four ID’s come as I want which is literal. However I want the fifth one to show as ‘111’,’222’,’333’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: Times New Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: black; font-size: 12pt; mso-ansi-language: EN; font-family: 'Calibri',sans-serif;"&gt;Variable Output I Get&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: Times New Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: black; font-size: 12pt; mso-ansi-language: EN; font-family: 'Calibri',sans-serif;"&gt;v_ID1 = ‘111’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: black; font-size: 12pt; mso-ansi-language: EN; font-family: 'Calibri',sans-serif;"&gt;v_ID2 = ‘222’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: black; font-size: 12pt; mso-ansi-language: EN; font-family: 'Calibri',sans-serif;"&gt;v_ID3= ‘333’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica',sans-serif; font-size: 10pt; mso-ansi-language: EN;"&gt;v_ID4= ‘444’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica',sans-serif; font-size: 10pt; mso-ansi-language: EN;"&gt;v_ID5= $(v_ID1),$(v_ID2),$(v_ID3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: Times New Roman;"&gt;My script is like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;Test:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 8pt; font-family: Times New Roman;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-size: 8pt;"&gt;Variable&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: gray; font-size: 8pt;"&gt;$(vVariableValue)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 8pt; font-family: Times New Roman;"&gt;//NOTE I do have this variabalized but for the input file examples sake I kept just one example to keep it simpler &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 8pt; font-family: Times New Roman;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Times New Roman;"&gt; &lt;BR /&gt; '..\includes\File1.xlsx'&lt;BR /&gt; (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;table&lt;/SPAN&gt; &lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; Sheet1) ;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: gray; font-size: 8pt;"&gt;vNumberofRows&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;NoOfRows&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; ('Test');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;For&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: gray; font-size: 8pt;"&gt;vI&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-size: 8pt;"&gt;vNumberofRows&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; - 1);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: gray; font-size: 8pt;"&gt;vVariable&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;('Variable',&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-size: 8pt;"&gt;vI&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;,'Test'); &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: gray; font-size: 8pt;"&gt;vValue&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; ('$(vVariableValue)',&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-size: 8pt;"&gt;vI&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;,'Test');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: gray; font-size: 8pt;"&gt;[$(vVariable)]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt; ('$(vVariableValue)', &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-size: 8pt;"&gt;vI&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;, 'Test') ;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: blue; font-size: 8pt;"&gt;Next&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="color: black; font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica',sans-serif; font-size: 10pt; mso-ansi-language: EN;"&gt;Do I Need to do some sort of IF logic inside of the loop to treat these differently? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: black; font-size: 12pt; mso-ansi-language: EN; font-family: 'Calibri',sans-serif;"&gt;I just can’t seem to get the syntax to work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Calibri',sans-serif; mso-ansi-language: EN;"&gt;Also note, I am trying to do this without minimal changing of the source excel file format.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 11:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-selectively-read-value-as-variable-or-as-a-literal/m-p/1039342#M641432</guid>
      <dc:creator />
      <dc:date>2016-02-03T11:59:12Z</dc:date>
    </item>
  </channel>
</rss>

