<?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: qvd files in same directory with different fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261913#M620241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it can be any field from your QVD at all, just replace it with any one. The load inline is just required to create the table so you can then concatenate it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Mar 2017 18:40:24 GMT</pubDate>
    <dc:creator>adamdavi3s</dc:creator>
    <dc:date>2017-03-09T18:40:24Z</dc:date>
    <item>
      <title>qvd files in same directory with different fields</title>
      <link>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261906#M620234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an extract that stores a new qvd file in the same directory everyday. The files are called accounts_&lt;EM&gt;$(v_&lt;/EM&gt;&lt;EM&gt;todays_date)&lt;/EM&gt;.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when I pull the files in the data model my FROM statement is just:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM &lt;D&gt; (qvd)&lt;/D&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it pulls in every file in the directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has worked fine so far since I have not needed to add any fields. However, I am in a situation that I do need to add a field to the files going forward. I am wondering if there is a way to keep my current structure and somehow ignore the fact that there is a new field in some of the qvd files. Like something that I can put in the LOAD that says if the field doesn't exist in one of the qvd files just make it null. Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261906#M620234</guid>
      <dc:creator />
      <dc:date>2017-03-09T14:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: qvd files in same directory with different fields</title>
      <link>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261907#M620235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hate to say it but does just using this work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *&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;FROM &lt;D&gt; (qvd)&lt;/D&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;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;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;It depends what you then do with those fields I guess, but you can't be doing much if you're aiming for optimised qvd loads anyway.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261907#M620235</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-09T14:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: qvd files in same directory with different fields</title>
      <link>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261908#M620236</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;You can try a loop in your directory like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;Inline [&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each vfile in filelist("directoryName")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(MyTable)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;From $(vfile)(qvd)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next vfile&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261908#M620236</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2017-03-09T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: qvd files in same directory with different fields</title>
      <link>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261909#M620237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm no that creates a synthetic key... bear with me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261909#M620237</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-09T14:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: qvd files in same directory with different fields</title>
      <link>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261910#M620238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep this resolves the issue I was having with the synthetic key, and actually you don't even need the loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;transactions:&lt;/P&gt;&lt;P&gt;load * INLINE [&lt;/P&gt;&lt;P&gt;TransCounter&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(transactions)&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;from accounts_*.qvd(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261910#M620238</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-09T14:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: qvd files in same directory with different fields</title>
      <link>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261911#M620239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ah, ok great &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261911#M620239</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2017-03-09T14:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: qvd files in same directory with different fields</title>
      <link>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261912#M620240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the purpose of 'TransCounter' in this example? I don't currently have a field like that in my existing qvd files and I am unable to recreate them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 18:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261912#M620240</guid>
      <dc:creator />
      <dc:date>2017-03-09T18:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: qvd files in same directory with different fields</title>
      <link>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261913#M620241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it can be any field from your QVD at all, just replace it with any one. The load inline is just required to create the table so you can then concatenate it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 18:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qvd-files-in-same-directory-with-different-fields/m-p/1261913#M620241</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-09T18:40:24Z</dc:date>
    </item>
  </channel>
</rss>

