<?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 apply variable to get the value from table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-apply-variable-to-get-the-value-from-table/m-p/1451016#M818285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure about your requirement but I remember working on an assignment to load file, path and type details of source files from a spreadsheet and then creating the tables dynamically. Something like below but I had the format of the source also available in my spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any of the values in the source xlsx is wrong then it would result in reload being failed. Proper debug is required for all source file scenarios prior reloading the full script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;src:&lt;/P&gt;&lt;P&gt;LOAD file, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; path, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\..\..\load.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vPath = '';&lt;/P&gt;&lt;P&gt;let vFile = '';&lt;/P&gt;&lt;P&gt;let vType = '';&lt;/P&gt;&lt;P&gt;for counter = 1 to NoOfRows('&lt;SPAN style="font-size: 13.3333px;"&gt;src&lt;/SPAN&gt;')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vFile = peek('file',$(counter)-1,'&lt;SPAN style="font-size: 13.3333px;"&gt;src&lt;/SPAN&gt;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vPath = peek('path',$(counter)-1,'&lt;SPAN style="font-size: 13.3333px;"&gt;src&lt;/SPAN&gt;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vType= peek('type',$(counter)-1,'&lt;SPAN style="font-size: 13.3333px;"&gt;src&lt;/SPAN&gt;')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * From &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vPath)$(vFile)$(vType);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next counter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2017 14:13:38 GMT</pubDate>
    <dc:creator>sudeepkm</dc:creator>
    <dc:date>2017-08-23T14:13:38Z</dc:date>
    <item>
      <title>How to apply variable to get the value from table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-apply-variable-to-get-the-value-from-table/m-p/1451013#M818282</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;I have following excel table. this table has many rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Address&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;File&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C:\Emp Folder&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;emp.xlsx&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C:\ ID Folder&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;id.csv&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I apply variable to get the address= C:\Emp Folder ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to run loop to get the specific record in column.&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-apply-variable-to-get-the-value-from-table/m-p/1451013#M818282</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply variable to get the value from table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-apply-variable-to-get-the-value-from-table/m-p/1451014#M818283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use Peek or use FieldValue() functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Address,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FOR i = 1 to FieldValueCount('Address')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vAddress$(i) = FieldValue('Address', $(i));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NEXT i&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-apply-variable-to-get-the-value-from-table/m-p/1451014#M818283</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-23T11:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply variable to get the value from table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-apply-variable-to-get-the-value-from-table/m-p/1451015#M818284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you tell me what is the reason to create the variable for specific field value? You can directly use the field value in set analysis or in conditions or you can filter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-apply-variable-to-get-the-value-from-table/m-p/1451015#M818284</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-23T11:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply variable to get the value from table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-apply-variable-to-get-the-value-from-table/m-p/1451016#M818285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure about your requirement but I remember working on an assignment to load file, path and type details of source files from a spreadsheet and then creating the tables dynamically. Something like below but I had the format of the source also available in my spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any of the values in the source xlsx is wrong then it would result in reload being failed. Proper debug is required for all source file scenarios prior reloading the full script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;src:&lt;/P&gt;&lt;P&gt;LOAD file, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; path, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\..\..\load.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vPath = '';&lt;/P&gt;&lt;P&gt;let vFile = '';&lt;/P&gt;&lt;P&gt;let vType = '';&lt;/P&gt;&lt;P&gt;for counter = 1 to NoOfRows('&lt;SPAN style="font-size: 13.3333px;"&gt;src&lt;/SPAN&gt;')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vFile = peek('file',$(counter)-1,'&lt;SPAN style="font-size: 13.3333px;"&gt;src&lt;/SPAN&gt;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vPath = peek('path',$(counter)-1,'&lt;SPAN style="font-size: 13.3333px;"&gt;src&lt;/SPAN&gt;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vType= peek('type',$(counter)-1,'&lt;SPAN style="font-size: 13.3333px;"&gt;src&lt;/SPAN&gt;')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * From &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vPath)$(vFile)$(vType);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next counter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-apply-variable-to-get-the-value-from-table/m-p/1451016#M818285</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2017-08-23T14:13:38Z</dc:date>
    </item>
  </channel>
</rss>

