<?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 Trying to load missing data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trying-to-load-missing-data/m-p/314398#M1191496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; bump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 14:00:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-28T14:00:08Z</dc:date>
    <item>
      <title>Trying to load missing data</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-load-missing-data/m-p/314397#M1191495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to QlikView and I'm trying to create a QlikView document to store and manage data. I have several reports produced by the same program, but out of a list of about 30 fields the various reports may contain any 20 of these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I am using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;PolicyData:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;LOAD '$(varRunDate)' as RunDate,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; '$(varCompany)' as Company,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; '$(varProduct)' as Product,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; CALENDAR_YR,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; GROSS_PROFIT,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; NET_PROFIT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; FROM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;$(varFilePath).prn&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Store PolicyData into &lt;C&gt;;&lt;/C&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;PolicyData:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;LOAD * FROM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I load in the new report, save it in a data folder, then load in all saved reports. As I load in all saved reports after every update I want all the data to be saved with identical columns, but some reports will contain GROSS_PROFIT and not NET_PROFIT, and vice versa. In reality there are more like 30 fields of which the report may contain any 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I first load in the report is there any way to give a field a default value of 0 if it is not present in the report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 11:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-load-missing-data/m-p/314397#M1191495</guid>
      <dc:creator />
      <dc:date>2011-07-28T11:04:37Z</dc:date>
    </item>
    <item>
      <title>Trying to load missing data</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-load-missing-data/m-p/314398#M1191496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; bump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 14:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-load-missing-data/m-p/314398#M1191496</guid>
      <dc:creator />
      <dc:date>2011-07-28T14:00:08Z</dc:date>
    </item>
    <item>
      <title>Trying to load missing data</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-load-missing-data/m-p/314399#M1191497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first try loading all the field names seperately... and then check if the field is nul.. and if its null.. or its not there.. then assign anything in place of that field... like using a for loop... &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>Fri, 19 Aug 2011 06:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-load-missing-data/m-p/314399#M1191497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-19T06:23:11Z</dc:date>
    </item>
  </channel>
</rss>

