<?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: Load file based on dates as field names in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-file-based-on-dates-as-field-names/m-p/121032#M509734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, It can work. But given more value fields could impact performance because of multiple if loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, small correction in my code:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DateTemp:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;CrossTable&lt;BR /&gt;&lt;/STRONG&gt;(Date, Datafield, n) //n=depends upon your transformations&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD&lt;BR /&gt;&lt;/STRONG&gt;*&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FROM [filepath]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Main:&lt;/P&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Resident&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &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;"&gt;DateTemp&lt;/SPAN&gt; where &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Date &amp;gt; '&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;20081205&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;'&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;Drop Table &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;DateTemp&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2018 17:09:18 GMT</pubDate>
    <dc:creator>achettipalli</dc:creator>
    <dc:date>2018-10-24T17:09:18Z</dc:date>
    <item>
      <title>Load file based on dates as field names</title>
      <link>https://community.qlik.com/t5/QlikView/Load-file-based-on-dates-as-field-names/m-p/121028#M509730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an interesting issue I am trying to resolve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load a file where the date is a field name eg 20181019.&amp;nbsp; These go back a few years (3000 fields).&amp;nbsp; I need to create a table populated within a certain range (greater than 20081205).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could create a loop to look through each field and if they are greater than 200181205 then drop the field but that takes time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a solution which is more efficient?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 13:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-file-based-on-dates-as-field-names/m-p/121028#M509730</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-19T13:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Load file based on dates as field names</title>
      <link>https://community.qlik.com/t5/QlikView/Load-file-based-on-dates-as-field-names/m-p/121029#M509731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean the say &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;20181019 is the name of the column?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if so i would recommend a crosstable load so that the instead of columns it becomes rows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;then you can easily filter out the undesired rows through a where clause.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;check &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3628"&gt;The Crosstable Load&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 17:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-file-based-on-dates-as-field-names/m-p/121029#M509731</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-10-19T17:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Load file based on dates as field names</title>
      <link>https://community.qlik.com/t5/QlikView/Load-file-based-on-dates-as-field-names/m-p/121030#M509732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ross,&lt;/P&gt;&lt;P&gt;Two options,&lt;/P&gt;&lt;P&gt;1. Through cross-table wizard, options-&amp;gt;file wizard&lt;/P&gt;&lt;P&gt;2. Crosstable() in load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DateTemp:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;CrossTable&lt;BR /&gt;&lt;/STRONG&gt;(Date, Datafield, n) //n=depends upon your transformations&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;BR /&gt;&lt;/STRONG&gt;*&lt;BR /&gt;&lt;STRONG&gt;FROM [filepath]&lt;/STRONG&gt;&lt;BR /&gt;where Date &amp;gt; '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;20081205&lt;/SPAN&gt;';&amp;nbsp; // you can perform date conversions ahead of this script&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NOCONCATENATE&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;Main:&lt;/P&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;&lt;STRONG&gt;Resident&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DateTemp&lt;/SPAN&gt; where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date &amp;gt; '&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;20081205&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'&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;Drop Table &lt;SPAN&gt;DateTemp&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;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/thread/279049"&gt;Use of Resident Load ?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 19:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-file-based-on-dates-as-field-names/m-p/121030#M509732</guid>
      <dc:creator>achettipalli</dc:creator>
      <dc:date>2018-10-19T19:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Load file based on dates as field names</title>
      <link>https://community.qlik.com/t5/QlikView/Load-file-based-on-dates-as-field-names/m-p/121031#M509733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I eventually wrote loop to delete out the dated range this I didn't need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let i = 1;&lt;/P&gt;&lt;P&gt;do while i &amp;lt;= NoOfFields('RawTable')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vQVDFieldName = FieldName($(i) ,RawTable);&lt;/P&gt;&lt;P&gt;if isnum(vQVDFieldName) THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; vQVDFieldName&amp;lt; 20081206 and vQVDFieldName &amp;gt;=20071203 THEN&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;drop Field [$(vQVDFieldName)];&lt;/P&gt;&lt;P&gt;Let i = i - 1;&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;Let i = i + 1;&lt;/P&gt;&lt;P&gt;loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 12:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-file-based-on-dates-as-field-names/m-p/121031#M509733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T12:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load file based on dates as field names</title>
      <link>https://community.qlik.com/t5/QlikView/Load-file-based-on-dates-as-field-names/m-p/121032#M509734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, It can work. But given more value fields could impact performance because of multiple if loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, small correction in my code:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DateTemp:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;CrossTable&lt;BR /&gt;&lt;/STRONG&gt;(Date, Datafield, n) //n=depends upon your transformations&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD&lt;BR /&gt;&lt;/STRONG&gt;*&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FROM [filepath]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Main:&lt;/P&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Resident&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &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;"&gt;DateTemp&lt;/SPAN&gt; where &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Date &amp;gt; '&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;20081205&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;'&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;Drop Table &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;DateTemp&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 17:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-file-based-on-dates-as-field-names/m-p/121032#M509734</guid>
      <dc:creator>achettipalli</dc:creator>
      <dc:date>2018-10-24T17:09:18Z</dc:date>
    </item>
  </channel>
</rss>

