<?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: Re: Regarding logic for my scenario in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752236#M268096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.. See if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Nov 2014 09:15:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-15T09:15:21Z</dc:date>
    <item>
      <title>Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752229#M268089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure about the logic for my scenario, kindly share your ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 tables, say &lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to show the Amount from Table 2 as default in all reports, but in case if there is no amount from Table 2, then I have to show&amp;nbsp; the Amount from Table 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Kindly let me know your ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 21:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752229#M268089</guid>
      <dc:creator />
      <dc:date>2014-11-14T21:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752230#M268090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the JOIN statement and consider bringing those tables together based on your KEY field. But if you want to keep them separate look at the ISNULL() function and use an IF for your expression where you do just what you said. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 21:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752230#M268090</guid>
      <dc:creator />
      <dc:date>2014-11-14T21:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752231#M268091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load Table1 as Mapping Table&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and in Table 2 If(Isnull(Amount)=-1, ApplyMap())&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OR&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table1:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Key,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1 as Amount_Flag,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Amount&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; Concatenate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table2:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Key,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2 as Amount_Flag&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Amount&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In Expressions or Resident If(Amount_Flag=2 and Isnull(Amount)=-1,If(Amount_Flag=1,Amount,0),0) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 21:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752231#M268091</guid>
      <dc:creator />
      <dc:date>2014-11-14T21:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752232#M268092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="71314" alt="QlikCommunity_Thread_142254_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/71314_QlikCommunity_Thread_142254_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="71315" alt="QlikCommunity_Thread_142254_Pic2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/71315_QlikCommunity_Thread_142254_Pic2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_142254_Pic3.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/71316_QlikCommunity_Thread_142254_Pic3.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 21:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752232#M268092</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-14T21:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752233#M268093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dalton,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your time. It is just a part of my logic and I need to consider my other tables too, I need to do my calculation in the link table which contains both the tables.&lt;/P&gt;&lt;P&gt;I have attached the application for your reference, kindly let me know your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 21:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752233#M268093</guid>
      <dc:creator />
      <dc:date>2014-11-14T21:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752234#M268094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eddie,&lt;/P&gt;&lt;P&gt;Thanks for your time. I have attached my sample script, If possible could you please implement your logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I sincerely appreciate your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 22:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752234#M268094</guid>
      <dc:creator />
      <dc:date>2014-11-14T22:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752235#M268095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eddie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got partial output. But when Amount in Table 2 is null, it is not showing the amount from Table 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the application, kindly let me know your valuable suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 22:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752235#M268095</guid>
      <dc:creator />
      <dc:date>2014-11-14T22:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752236#M268096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.. See if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 09:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752236#M268096</guid>
      <dc:creator />
      <dc:date>2014-11-15T09:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752237#M268097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eddie,&lt;/P&gt;&lt;P&gt;Thanks and I appreciate your time. The only problem with the above script is it is showing both the amount(PO, PR) for the key :1936. But I have to display only PO in this case which is 2971 ( The rule is if PO is present then I have to show only&amp;nbsp; PO and if not then PR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 17:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752237#M268097</guid>
      <dc:creator />
      <dc:date>2014-11-17T17:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752238#M268098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want the extra values loaded into your data you could use an Exists clause in your data load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;FROM Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (Table)&lt;/P&gt;&lt;P&gt;Load Key,&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;FROM Table2&lt;/P&gt;&lt;P&gt;WHERE Not Exists (Key);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 17:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752238#M268098</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2014-11-17T17:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752239#M268099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your time. I tried that earlier but not getting my relevant data.&lt;/P&gt;&lt;P&gt;My scenario for your reference.&lt;/P&gt;&lt;P&gt;I have 2 tables (PR, PO) with common key and amount. I always need to display only PO amount and in case if PO is not present then I need to show PR. I have attached a sample for your reference, kindly let me know. If&amp;nbsp; possible, I need to implement this logic via a link table to satisfy some other future constraints as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 18:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752239#M268099</guid>
      <dc:creator />
      <dc:date>2014-11-17T18:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752240#M268100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Table&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Key,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Amount as amount1&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;FROM Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;CONCATENATE (Table)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Load Key,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Amount&amp;nbsp; as amount2&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;if(amount=amount2,amount2,amount1) &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;FROM Table2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 18:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752240#M268100</guid>
      <dc:creator />
      <dc:date>2014-11-17T18:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752241#M268101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have access to your app, but just try, if you can use "if(len(PO)=0,PR,PO)".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 18:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752241#M268101</guid>
      <dc:creator />
      <dc:date>2014-11-17T18:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752242#M268102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we need to declare amount2 initially?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 19:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752242#M268102</guid>
      <dc:creator />
      <dc:date>2014-11-17T19:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding logic for my scenario</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752243#M268103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as I understand you like to keep your table structure, one possible solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_142254_Pic4.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/71457_QlikCommunity_Thread_142254_Pic4.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_142254_Pic5.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/71458_QlikCommunity_Thread_142254_Pic5.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14162619957188510" jivemacro_uid="_14162619957188510"&gt;
&lt;P&gt;Fact_PR:&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;/P&gt;
&lt;P&gt;Key, Amount&lt;/P&gt;
&lt;P&gt;2,500&lt;/P&gt;
&lt;P&gt;443567,429&lt;/P&gt;
&lt;P&gt;1936,2834&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Fact_PO:&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;/P&gt;
&lt;P&gt;Key, Amount,val&lt;/P&gt;
&lt;P&gt;443567,429,6&lt;/P&gt;
&lt;P&gt;1936,2971,9&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Fact1:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Key as Key1,&lt;/P&gt;
&lt;P&gt;Amount as Amount1&lt;/P&gt;
&lt;P&gt;Resident Fact_PR;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Fact2:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Key as Key2,&lt;/P&gt;
&lt;P&gt;Amount as Amount2&lt;/P&gt;
&lt;P&gt;Resident Fact_PO;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Lk2:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Key as Link_Key,&lt;/P&gt;
&lt;P&gt;Amount as Final_Amount,&lt;/P&gt;
&lt;P&gt;'2' as Amount_Flag&lt;/P&gt;
&lt;P&gt;Resident Fact_PO&lt;/P&gt;
&lt;P&gt;Where not IsNull(Amount);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Key as Link_Key,&lt;/P&gt;
&lt;P&gt;Amount as Final_Amount,&lt;/P&gt;
&lt;P&gt;'1' as Amount_Flag&lt;/P&gt;
&lt;P&gt;Resident Fact_PR&lt;/P&gt;
&lt;P&gt;Where not (IsNull(Amount) or Exists(Link_Key,Key));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LinkTable1:&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;Key1,&lt;/P&gt;
&lt;P&gt;Key1 as Link_Key&lt;/P&gt;
&lt;P&gt;Resident&lt;/P&gt;
&lt;P&gt;Fact1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Outer Join (LinkTable1)&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;Key2,&lt;/P&gt;
&lt;P&gt;Key2 as Link_Key&lt;/P&gt;
&lt;P&gt;Resident Fact2;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Tables Fact_PR, Fact_PO;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 22:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-logic-for-my-scenario/m-p/752243#M268103</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-17T22:06:16Z</dc:date>
    </item>
  </channel>
</rss>

