<?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: Field not found error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899158#M993937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the second LOAD is a PRECEDING LOAD, but it keeps only one (new) field called ExchgRate. Is that your intent?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2015 12:07:23 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2015-07-07T12:07:23Z</dc:date>
    <item>
      <title>Field not found error</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899156#M993935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not quite shure what I am doing wrong here, I wonder if I am missing a JOIN.&amp;nbsp; There is the slightly shortened codes (omiting fields that are unused).&amp;nbsp; What I am trying to do is get the exchange rate from one table, if it is zero make it 1 or else keep it (this part works fine, I believe) then multiply the exchange rate by the amount (DMBTR)....that is where I get the fail "Table Not found....&lt;STRONG style=": ; color: #000000; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;DMBTR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;ExchRate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;tempSpend_NOK&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt; MainLineItems&lt;/SPAN&gt;;".&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have tried to also load it from the .qvd file also (non-resident) but still no luck.&amp;nbsp; Any ideas on where I am going wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DMBTR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ExchRate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;tempSpend_NOK&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; MainLineItems;&lt;BR /&gt;&lt;BR /&gt;FixExRateZero:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;UKURS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 0, 1, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;UKURS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ExchRate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//// If exchange rate = 0 set value to 1. &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;MainHeader:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BELNR,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UKURS&lt;BR /&gt;&lt;BR /&gt;FROM TABLE_X ;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Store&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; MainHeader &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Into&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; C:\QlikView\dgMainHeader.qvd;&lt;BR /&gt;&lt;BR /&gt;MainLineItems:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT&lt;BR /&gt;&lt;BR /&gt; BELNR,&lt;BR /&gt; ......&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DMBTR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;FROM TABLE_Y; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Store&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; MainLineItems &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Into&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; C:\QlikView\dgMainLineItems.qvd; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 12:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899156#M993935</guid>
      <dc:creator />
      <dc:date>2015-07-07T12:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Field not found error</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899157#M993936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The LOAD RESIDENT MainLineItems; comes before the MainLineItems table is created (at the bottom of your script). There is a causality error in this logic, don't you think?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 12:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899157#M993936</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-07-07T12:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Field not found error</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899158#M993937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the second LOAD is a PRECEDING LOAD, but it keeps only one (new) field called ExchgRate. Is that your intent?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 12:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899158#M993937</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-07-07T12:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Field not found error</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899159#M993938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally, UKURS (and by extension ExchgRate) and DMBTR belong to different tables. You cannot multiply them in a single LOAD without using applymap or a JOIN to put the two fields in the same table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 12:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899159#M993938</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-07-07T12:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Field not found error</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899160#M993939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, and multiplies by the amount field in MainLineItems&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 12:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899160#M993939</guid>
      <dc:creator />
      <dc:date>2015-07-07T12:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Field not found error</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899161#M993940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JOIN is what I thought the problem would be...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 12:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899161#M993940</guid>
      <dc:creator />
      <dc:date>2015-07-07T12:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Field not found error</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899162#M993941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if you want to combine fields from different tables, you have to either JOIN them first or use applymap() or something similar to get them into the same table. Only then you can perform the multiply operation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 12:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899162#M993941</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-07-07T12:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Field not found error</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899163#M993942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot about the UKURS (and by extension ExchgRate) connection....I am sure it will work when I make a derived unique key on the other table and JOIN them...Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 12:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899163#M993942</guid>
      <dc:creator />
      <dc:date>2015-07-07T12:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Field not found error</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899164#M993943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TempMainLineItems:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SQL SELECT BELNR, DMBTR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM TABLE_Y;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LEFT JOIN(TempMainLineItems)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SQL SELECT BELNR, UKURS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM TABLE_X;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MainLineItems:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOCONCATENATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD *, ExchangeRate*DMBTR AS tempSpend_NOK;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD BELNR, DMBTR, UKURS, IF (UKURS=0, 1, UKURS) AS ExchangeRate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT TempMainLineItems;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP Table TempMainLineItems;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that SAP (I guess that is what your are reading data from) has a lot of restrictions with respect to what you can do with SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 12:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-error/m-p/899164#M993943</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-07-07T12:17:25Z</dc:date>
    </item>
  </channel>
</rss>

