<?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: Loading certain field based on a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-certain-field-based-on-a-variable/m-p/1177957#M382165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is a sample of the spreadsheet. Hopefully what I explained makes sense in context to that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2016 14:21:40 GMT</pubDate>
    <dc:creator>shane_spencer</dc:creator>
    <dc:date>2016-07-18T14:21:40Z</dc:date>
    <item>
      <title>Loading certain field based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-certain-field-based-on-a-variable/m-p/1177955#M382163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got two scripts that load data from two spreadsheets. Each month someone adds a new column to the spreadsheet with a field name of the month i.e. 01/08/2016 for August. I only want to load a certain month, most like the most recent and I refer to this field a few times in the script: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/131651_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;and:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/131652_Capture2.PNG" style="height: 353px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of creating a variable so I only have to update the script in one place instead of 6?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 13:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-certain-field-based-on-a-variable/m-p/1177955#M382163</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2016-07-18T13:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Loading certain field based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-certain-field-based-on-a-variable/m-p/1177956#M382164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Shane Spencer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The content is based on each row of the table? Or is today's date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonas Melo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 14:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-certain-field-based-on-a-variable/m-p/1177956#M382164</guid>
      <dc:creator>jonas_rezende</dc:creator>
      <dc:date>2016-07-18T14:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loading certain field based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-certain-field-based-on-a-variable/m-p/1177957#M382165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is a sample of the spreadsheet. Hopefully what I explained makes sense in context to that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 14:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-certain-field-based-on-a-variable/m-p/1177957#M382165</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2016-07-18T14:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Loading certain field based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-certain-field-based-on-a-variable/m-p/1177958#M382166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;define a variable where you set the field name&lt;/P&gt;&lt;P&gt;let vField = '01/02/2016';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then replace the field name within the variable. Because there are a / as delimiter, use brackets [ ]&lt;BR /&gt;LOAD System, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [$(vField)] as Value&lt;BR /&gt;FROM yourdata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 14:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-certain-field-based-on-a-variable/m-p/1177958#M382166</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2016-07-18T14:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loading certain field based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-certain-field-based-on-a-variable/m-p/1177959#M382167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Shane Spencer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tmp_Date:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[01/06/2016]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[TableWithNewField];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vdate = Peek('[01/06/2016]',0,'tmp_Date');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP TABLE&lt;/STRONG&gt; &lt;STRONG&gt;tmp_Date;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAN_Disk:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LEFT KEEP ('Consolidated_BF_Inv') &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SYSTEM as Configuration_Item,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TIER,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(TIER = 'TIER1','&lt;SPAN style="color: #ff0000;"&gt;$(vdate)&lt;/SPAN&gt;') as [Tier1 (GB)],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(TIER = 'TIER2','&lt;SPAN style="color: #ff0000;"&gt;$(vdate)&lt;/SPAN&gt;') as [Tier2 (GB)],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'$(vdate)'&amp;nbsp;&amp;nbsp; as [Disk (GB)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;R:\Reference_Data\2016 June MI - Usage SAN NAS Disk.xls]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, header 5 lines,&amp;nbsp; table is [Usage$]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Len('&lt;SPAN style="color: #ff0000;"&gt;$(vdate)&lt;/SPAN&gt;') &amp;gt; 0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 15:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-certain-field-based-on-a-variable/m-p/1177959#M382167</guid>
      <dc:creator>jonas_rezende</dc:creator>
      <dc:date>2016-07-18T15:37:28Z</dc:date>
    </item>
  </channel>
</rss>

