<?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: Adding Calculated column and Outerjoin in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-Calculated-column-and-Outerjoin/m-p/888981#M1011807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Oleg for the explanation it helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2015 20:20:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-07T20:20:42Z</dc:date>
    <item>
      <title>Adding Calculated column and Outerjoin</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Calculated-column-and-Outerjoin/m-p/888979#M1011805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Requiremnet #1: Outer join with two different tables&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;I am using different reporting and working on replicating same data modeling using qlikview. above screen show join structure used to join tables. I have created one QVD for each table shown above and joined tables in Qlikview.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;But there is issue in joining 'Movement History' with 'Underwriting' and 'Contract' table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'Movement History table has Left join with 'Underwriting' and contract tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Left Join ( Contract)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Movement History:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Left Join ( Underwriting)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Movement History:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;The movement we define outerjoin, system getting frozen and need to force restart it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement #2: Adding calculated column from two different tables.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;I want to add calculated column which is derived from columns from the tables contract and Unit&amp;nbsp; to group the records &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;If(unit.column='A' and Contract.columns='abc')&amp;nbsp; Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;('Group1')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;elseif&amp;nbsp; If(unit.column='A' and Contract.columns &amp;lt;&amp;gt; 'abc')&amp;nbsp; Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;('Group2')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;elseif&amp;nbsp; If(unit.column='B' and Contract.columns = 'yz')&amp;nbsp; Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;('Group3')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is it possible to add calculated dimension column from two different dimensions and use it in List Box for user selection.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 01:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Calculated-column-and-Outerjoin/m-p/888979#M1011805</guid>
      <dc:creator />
      <dc:date>2015-04-23T01:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Calculated column and Outerjoin</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Calculated-column-and-Outerjoin/m-p/888980#M1011806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding your first requirement - I think you misunderstand the use of JOIN in QlikView... In order to recreate the structure presented in your document, you don't need to join these tables. Load them individually and let them &lt;EM&gt;link&lt;/EM&gt; (not join) to each other, based on common field names. In QlikView, Joining means adding columns from one table into another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what happened in your script - you added the same fields from Movement History into Contracts and into Underwriting, and these multiple identical fields created a huge Synthetic key, causing the system to halt. Another possible cause is if you don't have any identical key fields - then QlikView performs a Cartesian Join, linking every row from one table to every row from another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only issue in your data model is that Movement History, Underwriting and Contract are all linked between them. If all three tables are linked by the same single key, it might be OK. Otherwise, you may get a "Circular reference", and you'll have to resolve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for your second requirement - you need to bring both fields into the same table in order to use both fields in the same calculation. You can achieve that using JOIN or using MAPPING (look them up in the manual, it's too long to describe in a single post).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.masterssummit.com/"&gt;www.masterssummit.com&lt;/A&gt; - take your QlikView skills to the next level!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 15:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Calculated-column-and-Outerjoin/m-p/888980#M1011806</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-04-23T15:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Calculated column and Outerjoin</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Calculated-column-and-Outerjoin/m-p/888981#M1011807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Oleg for the explanation it helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 20:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Calculated-column-and-Outerjoin/m-p/888981#M1011807</guid>
      <dc:creator />
      <dc:date>2015-08-07T20:20:42Z</dc:date>
    </item>
  </channel>
</rss>

