<?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: Calculated row in script after joining three tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510422#M691995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, it doesn´t exist, but the way you suggest doesn´t work since I can´t put reference to a field which is not joined yet into the resident load for table1. Anyway, I´ve worked around the problem the way I described couple of posts above, thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Sep 2013 10:57:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-13T10:57:58Z</dc:date>
    <item>
      <title>Calculated row in script after joining three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510416#M691989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys, I feel pretty stupid asking this question, I believe I´ve dealt with bigger problems in Qlikview so far, but I can´t seem to be able to solve this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field in a particular table, where I would like to add another row based on expression from values in table itself and from another table, which is joined by 3 ids away.&lt;BR /&gt;I already have the table (table1, in which id_1 is also present) loaded through binary load and I basically take it, join ids from two different tables to it, then load it into new table (table1_updated), create new field based on ids I´ve joined (original_field_updated) and drop original table (table1) as well as joined ids in newly created one (table1_updated).&lt;BR /&gt;The problem is, as soon as I drop these two ids, I loose the connection to the id_3 and 'new_value' doesn´t funcion as intended, taking only id_1 into account.&lt;BR /&gt;I can´t leave those ids nor the table1 in, since then it causes syntetic joins with tables I joined ids from, obviously. Here is the script:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LEFT JOIN (table1)&lt;BR /&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp; id_1,&lt;BR /&gt;id_2&lt;BR /&gt;Resident table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (table1)&lt;BR /&gt;LOAD id_2,&lt;BR /&gt;id_3&lt;BR /&gt;Resident table3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1_updated:&lt;BR /&gt;LOAD *,&lt;BR /&gt;if(id_1 = x AND id_3 = y, 'new_value', original_field) as original_field_updated&lt;BR /&gt;RESIDENT table1;&lt;/P&gt;&lt;P&gt;DROP table table1;&lt;BR /&gt;drop Fields id_2, id_3 from table1_updated;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does any of you know how to solve the issue? Thanks in advance for your time &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 13:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510416#M691989</guid>
      <dc:creator />
      <dc:date>2013-09-11T13:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated row in script after joining three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510417#M691990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sounds strange to me, beacause normally the if is executing during that particular table load and so the values are&lt;/P&gt;&lt;P&gt;already calculated, when you drop the fields and the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are the id_1, id_2 and id_3 the same and used only for joining?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you check, if it's maybe a concatenating problem?&lt;/P&gt;&lt;P&gt;table1_updated:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;noconcatenate&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;LOAD *,&lt;BR /&gt;if(id_1 = x AND id_3 = y, 'new_value', original_field) as original_field_updated&lt;BR /&gt;RESIDENT table1;&lt;/P&gt;&lt;P&gt;DROP table table1;&lt;BR /&gt;drop Fields id_2, id_3 from table1_updated;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 13:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510417#M691990</guid>
      <dc:creator>schlettig</dc:creator>
      <dc:date>2013-09-11T13:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated row in script after joining three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510418#M691991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for being this quick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I understand the question, the ids are used as real ids in other tables, that´s why I need to drop them from table1, in order to prevent unwanted joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, that solution is not helping, the new row value is still matched only to the first condition, not the second one (id_3 = y) &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 13:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510418#M691991</guid>
      <dc:creator />
      <dc:date>2013-09-11T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated row in script after joining three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510419#M691992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could rename them instead of dropping to see if that changes anything?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to show some lines of the 3 tables before joining?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt; Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 13:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510419#M691992</guid>
      <dc:creator>schlettig</dc:creator>
      <dc:date>2013-09-11T13:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated row in script after joining three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510420#M691993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i assume id2 doesn´t exist in table one before your first left join? if thats correct then your second left join doesn´t work at all even though your first left join is before that one (id 2 still doesn´t exist at this moment).&lt;/P&gt;&lt;P&gt;load your table 1 resident after joing id2 and then join id3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 14:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510420#M691993</guid>
      <dc:creator>michael_maeuser</dc:creator>
      <dc:date>2013-09-11T14:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated row in script after joining three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510421#M691994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Christian,&lt;/P&gt;&lt;P&gt;by using RENAME, even the original ones I need to keep in gets renamed.&lt;/P&gt;&lt;P&gt;Sorry, I can´t present any real data, unfortunately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime, I worked around the problem in tables and charts for whose I needed this row in the first place, by putting the line in dimension itself. It´s not as ellegant, but working for the time being.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 10:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510421#M691994</guid>
      <dc:creator />
      <dc:date>2013-09-13T10:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated row in script after joining three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510422#M691995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, it doesn´t exist, but the way you suggest doesn´t work since I can´t put reference to a field which is not joined yet into the resident load for table1. Anyway, I´ve worked around the problem the way I described couple of posts above, thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 10:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510422#M691995</guid>
      <dc:creator />
      <dc:date>2013-09-13T10:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated row in script after joining three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510423#M691996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good to hear you found a workaround.&lt;/P&gt;&lt;P&gt;With the rename i meant no the RENAME directive, but to load the fields with a different name.&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt; id_2 &lt;STRONG&gt;as&lt;/STRONG&gt; id_2_table2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt; Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 12:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510423#M691996</guid>
      <dc:creator>schlettig</dc:creator>
      <dc:date>2013-09-13T12:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated row in script after joining three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510424#M691997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, yes, I´ve tried that in the beginning as well. The problem is, if I rename them in the resident load of table1_updated, QV won´t let me call them for the conditional row I am trying to create (field does not exists).&lt;/P&gt;&lt;P&gt;Although I can call them by their original name, the connection will stop functioning and it is the same as if I would´ve dropped the fields...&lt;/P&gt;&lt;P&gt;Anyway, thanks for all your time, I´ll post solution here in the future, if I find one that is &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Have a nice weeekend!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 13:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-row-in-script-after-joining-three-tables/m-p/510424#M691997</guid>
      <dc:creator />
      <dc:date>2013-09-13T13:55:13Z</dc:date>
    </item>
  </channel>
</rss>

