<?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: Conditional Variable Expansion in Loop? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Variable-Expansion-in-Loop/m-p/1038738#M938927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you ok to give the input for v_ID5 like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 317px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Type&lt;/TD&gt;&lt;TD width="64"&gt;Variable&lt;/TD&gt;&lt;TD width="189"&gt;VariableValue&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Single&lt;/TD&gt;&lt;TD&gt;v_ID1&lt;/TD&gt;&lt;TD class="xl63"&gt;'111'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Single&lt;/TD&gt;&lt;TD&gt;v_ID2&lt;/TD&gt;&lt;TD class="xl63"&gt;'222'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Single&lt;/TD&gt;&lt;TD&gt;v_ID3&lt;/TD&gt;&lt;TD class="xl63"&gt;'333'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Single&lt;/TD&gt;&lt;TD&gt;v_ID4&lt;/TD&gt;&lt;TD class="xl63"&gt;'444'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;STRONG&gt;Multiple&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;v_ID5&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63"&gt;&lt;STRONG&gt;=v_ID1&amp;amp;','&amp;amp;v_ID2&amp;amp;','&amp;amp;v_ID3&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will get &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113508_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, i did small change in your script. Check the Attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2016 05:21:29 GMT</pubDate>
    <dc:creator>settu_periasamy</dc:creator>
    <dc:date>2016-02-04T05:21:29Z</dc:date>
    <item>
      <title>Conditional Variable Expansion in Loop?</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Variable-Expansion-in-Loop/m-p/1038737#M938926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&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 style="background: white;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Example Input file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113382_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 8.0pt; background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Calibri',sans-serif; color: black;"&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 style="background: white;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 8.0pt; background: white;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN lang="EN" style="font-family: 'Calibri',sans-serif; color: black;"&gt;Variable Output I Get&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 8.0pt; background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Calibri',sans-serif; color: black;"&gt;v_ID1 = ‘111’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8.0pt; background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Calibri',sans-serif; color: black;"&gt;v_ID2 = ‘222’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8.0pt; background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Calibri',sans-serif; color: black;"&gt;v_ID3= ‘333’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8.0pt; background: white;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;v_ID4= ‘444’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8.0pt; background: white;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;v_ID5= $(v_ID1),$(v_ID2),$(v_ID3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: black;"&gt;My script is like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;Test:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: maroon;"&gt;Type&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: maroon;"&gt;Variable&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: gray;"&gt;$(vVariableValue)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp; &lt;SPAN lang="EN" style="font-size: 8.0pt; color: green;"&gt;//NOTE I do have this variabalized but for the input file examples sake I kept just to loading from one example to keep it simpler &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; '..\includes\File1.xlsx'&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;table&lt;/SPAN&gt; &lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt; Sheet1) ;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: gray;"&gt;vNumberofRows&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt; ('Test');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;For&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: gray;"&gt;vI&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;to&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt; (&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: maroon;"&gt;vNumberofRows&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt; - 1);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: gray;"&gt;vVariable&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;= &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;('Variable',&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: maroon;"&gt;vI&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;,'Test'); &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: gray;"&gt;vValue&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;= &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt; ('$(vVariableValue)',&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: maroon;"&gt;vI&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;,'Test');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: gray;"&gt;[$(vVariable)]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt; ('$(vVariableValue)', &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: maroon;"&gt;vI&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;, 'Test') ;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: blue;"&gt;Next&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="font-size: 8.0pt; color: black;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&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;/P&gt;&lt;P style="margin-bottom: 8.0pt; background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Calibri',sans-serif; color: black;"&gt;I just can’t seem to get the syntax to work&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt; &lt;SPAN lang="EN" style="font-family: 'Calibri',sans-serif; color: black;"&gt;Also note, I am trying to do this without minimal changing of the source excel file format.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 10:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Variable-Expansion-in-Loop/m-p/1038737#M938926</guid>
      <dc:creator />
      <dc:date>2016-02-03T10:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Variable Expansion in Loop?</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Variable-Expansion-in-Loop/m-p/1038738#M938927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you ok to give the input for v_ID5 like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 317px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Type&lt;/TD&gt;&lt;TD width="64"&gt;Variable&lt;/TD&gt;&lt;TD width="189"&gt;VariableValue&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Single&lt;/TD&gt;&lt;TD&gt;v_ID1&lt;/TD&gt;&lt;TD class="xl63"&gt;'111'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Single&lt;/TD&gt;&lt;TD&gt;v_ID2&lt;/TD&gt;&lt;TD class="xl63"&gt;'222'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Single&lt;/TD&gt;&lt;TD&gt;v_ID3&lt;/TD&gt;&lt;TD class="xl63"&gt;'333'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Single&lt;/TD&gt;&lt;TD&gt;v_ID4&lt;/TD&gt;&lt;TD class="xl63"&gt;'444'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;STRONG&gt;Multiple&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;v_ID5&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63"&gt;&lt;STRONG&gt;=v_ID1&amp;amp;','&amp;amp;v_ID2&amp;amp;','&amp;amp;v_ID3&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will get &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113508_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, i did small change in your script. Check the Attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 05:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Variable-Expansion-in-Loop/m-p/1038738#M938927</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-02-04T05:21:29Z</dc:date>
    </item>
  </channel>
</rss>

