<?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 Trouble created a derived field from joined tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trouble-created-a-derived-field-from-joined-tables/m-p/175363#M43833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael's suggestion works, however I've been running into some random issues with left join, so I prefer to avoid it every time I possibly can. I usually do it in the"old fashionned way":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;MyTable1:&lt;BR /&gt;load&lt;BR /&gt; *,&lt;BR /&gt; if(D-F &amp;lt; 0, 'True','False') AS derivedfield&lt;BR /&gt;resident MyTable&lt;BR /&gt;;&lt;BR /&gt;drop table MyTable;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;The "*" in your derived load does the trick - you load all existing fields, plus the new one...&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2009 03:01:56 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2009-09-04T03:01:56Z</dc:date>
    <item>
      <title>Trouble created a derived field from joined tables</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-created-a-derived-field-from-joined-tables/m-p/175361#M43831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys. I've got 3 different tables I'm joining together using left join loads. So I'm doing something like this:&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;LOAD A, B, C from src1;&lt;/P&gt;&lt;P&gt;LEFT JOIN LOAD B, D, E from src2;&lt;/P&gt;&lt;P&gt;LEFT JOIN LOAD C,F,G from src3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I wanted to create a derived field based on two fields in the src2 and src3 tables. So I want to do something like:&lt;/P&gt;&lt;P&gt;LOAD if(D-F &amp;lt; 0, 'True','False') AS derivedfield;&lt;/P&gt;&lt;P&gt;But wherever I put that statement, it seems to lose track of one or the other field from src2 or src3. Any ideas? Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 02:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-created-a-derived-field-from-joined-tables/m-p/175361#M43831</guid>
      <dc:creator />
      <dc:date>2009-09-04T02:47:52Z</dc:date>
    </item>
    <item>
      <title>Trouble created a derived field from joined tables</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-created-a-derived-field-from-joined-tables/m-p/175362#M43832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After your create the MyTable:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;JOIN (MyTable) LOAD&lt;BR /&gt; A, //(or whatever the primary key is)&lt;BR /&gt; LOAD if(D-F &amp;lt; 0, 'True','False') AS derivedfield&lt;BR /&gt;RESIDENT MyTable;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 02:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-created-a-derived-field-from-joined-tables/m-p/175362#M43832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-04T02:54:07Z</dc:date>
    </item>
    <item>
      <title>Trouble created a derived field from joined tables</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-created-a-derived-field-from-joined-tables/m-p/175363#M43833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael's suggestion works, however I've been running into some random issues with left join, so I prefer to avoid it every time I possibly can. I usually do it in the"old fashionned way":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;MyTable1:&lt;BR /&gt;load&lt;BR /&gt; *,&lt;BR /&gt; if(D-F &amp;lt; 0, 'True','False') AS derivedfield&lt;BR /&gt;resident MyTable&lt;BR /&gt;;&lt;BR /&gt;drop table MyTable;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;The "*" in your derived load does the trick - you load all existing fields, plus the new one...&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 03:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-created-a-derived-field-from-joined-tables/m-p/175363#M43833</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-09-04T03:01:56Z</dc:date>
    </item>
  </channel>
</rss>

