<?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: How to link 2 Fact tables that share  Hierarchy and a key in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389803#M422705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veneeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not clear to me how i get the metrics for the delivered items in your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, customer 111 delivered items not returned are:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Customer_111_deliveries.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174763_Customer_111_deliveries.png" style="height: 168px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your solution, it's not clear how i can see them:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Customer_111_Returns.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/174764_Customer_111_Returns.png" style="height: 149px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your patience &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Aug 2017 09:11:33 GMT</pubDate>
    <dc:creator>dafnis14</dc:creator>
    <dc:date>2017-08-26T09:11:33Z</dc:date>
    <item>
      <title>How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389796#M422698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After exploring numerous blogs and discussions (like the one below)&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/547634#547634"&gt;https://community.qlik.com/message/547634#547634&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still couldn't figure out a solution for my issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a balanced&amp;nbsp; Hierarchy:&lt;/P&gt;&lt;P&gt;Delivery &amp;gt; Offer &amp;gt;Item&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="174758" alt="Hierarchy.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174758_Hierarchy.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One fact table (Deliveries) is link to the highest level (DeliveryID) and one (Customer Returns) to the lowest (Key_Delivery_Offer_Item).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="174762" alt="Facts_Link_to_Dimensions.png" class="image-4 jive-image" height="259" src="https://community.qlik.com/legacyfs/online/174762_Facts_Link_to_Dimensions.png" style="height: 259px; width: 488.085px;" width="488" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For both I need to sum by the item level which is working fine:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="174760" alt="Metrics_Delivered_Returned.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/174760_Metrics_Delivered_Returned.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I add the customer key, I get a circular reference:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="174761" alt="Circular_in_hierarchy.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/174761_Circular_in_hierarchy.png" style="height: 290px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think Generic Key or concatenation is not a solution because I need all the hiearchy levels for both fact tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to handle this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 07:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389796#M422698</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-08-26T07:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389797#M422699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post sample excel ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 07:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389797#M422699</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-26T07:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389798#M422700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vineeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added Excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 07:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389798#M422700</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-08-26T07:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389799#M422701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain the relationships please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Items 1&amp;nbsp; -&amp;nbsp; M Delivery&lt;/P&gt;&lt;P&gt;Item 1&amp;nbsp; - 1 Offer ?&amp;nbsp;&amp;nbsp; or Item 1 - M Offers ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the relationship between Delivery and Offer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you really need DeliveryId in DeliveryOffer table??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 07:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389799#M422701</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-26T07:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389800#M422702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will check and get back in sometime&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 07:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389800#M422702</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-26T07:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389801#M422703</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 attached the flattened hierarchy file of the dimensions as QVD.&lt;/P&gt;&lt;P&gt;I created a similar scenario to the one in reality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delivery can have one or more offers.&lt;/P&gt;&lt;P&gt;The same item can be linked to different offers. That's why I created the key: Key_Delivery_Offer_Item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the fact table with the customer deliveries I have only DeliveryID.&lt;/P&gt;&lt;P&gt;I don't want to create the items for all deliveries because in the real project it will end up&lt;/P&gt;&lt;P&gt;with tens of millions of records. &lt;/P&gt;&lt;P&gt;Is it clearer now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 08:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389801#M422703</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-08-26T08:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389802#M422704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached, you can use the Returned flag to see if that delivery was returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="174742" alt="272535.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174742_272535.JPG" style="height: 304px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 08:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389802#M422704</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-26T08:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389803#M422705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veneeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not clear to me how i get the metrics for the delivered items in your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, customer 111 delivered items not returned are:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Customer_111_deliveries.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174763_Customer_111_deliveries.png" style="height: 168px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your solution, it's not clear how i can see them:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Customer_111_Returns.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/174764_Customer_111_Returns.png" style="height: 149px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your patience &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 09:11:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389803#M422705</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-08-26T09:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389804#M422706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my model, I added a field: &lt;/P&gt;&lt;P&gt;1 as &lt;SPAN style="font-size: 13.3333px;"&gt;Qty_Delivered&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the Qty Delivered metric I wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(aggr(sum( Qty_Delivered),Delivery_Name,Offer_Name, Item_Name))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 09:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389804#M422706</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-08-26T09:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389805#M422707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to count the deliveries that are not returned you should be using the flag that has been created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Deliveries that were not returned will be&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;ReturnedFlag&lt;SPAN style="color: #ff0000;"&gt;-=&lt;/SPAN&gt;{1}&amp;gt;}Distinct DeliveryID)&amp;nbsp;&amp;nbsp; /// not equal to 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Deliveries that were returned will be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Count({&amp;lt;ReturnedFlag&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;{1}&amp;gt;}Distinct DeliveryID)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // equal to 1&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 09:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389805#M422707</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-26T09:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389806#M422708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;to count the deliveries that are not returned you should be using the flag that has been created&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;&amp;lt;&amp;lt;CORRECTION&amp;gt;&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Example&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Deliveries that were not returned will be&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;count({&amp;lt;%KEY_ReturnedDelivery={"=isnull(Returned.ReturnedFlag)"}&amp;gt;}DISTINCT DeliveryID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Deliveries that were returned will be&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;Count({&amp;lt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Returned.ReturnedFlag&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;=&lt;/SPAN&gt;{1}&amp;gt;}Distinct DeliveryID)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // equal to 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 09:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389806#M422708</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-26T09:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389807#M422709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately , it doesn't work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Returned.ReturnedFlag-={1}&amp;gt;}Distinct DeliveryID)&lt;/P&gt;&lt;P&gt;The returned quantity is also wrong...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Metrics_with_flag.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174765_Metrics_with_flag.png" style="height: 122px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 09:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389807#M422709</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-08-26T09:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389808#M422710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just made a correction above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 09:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389808#M422710</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-26T09:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389809#M422711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not there yet... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Customer_222.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174766_Customer_222.png" style="height: 169px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 09:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389809#M422711</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-08-26T09:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389810#M422712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;The returned quantity is also wrong...&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How is it wrong when we are counting Distinct DeliveryID? &lt;/P&gt;&lt;P&gt;and you can see Customer 111 has returned only &lt;SPAN style="font-size: 13.3333px;"&gt;DeliveryID&amp;nbsp; =&lt;/SPAN&gt;1 , so that is correct&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if you want to see how many offers then change to Distinct&amp;nbsp; Returned.OfferID&amp;nbsp; or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; distinct &lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp; Returned.ItemId &lt;/STRONG&gt;to see how many Items were returned&lt;BR /&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 09:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389810#M422712</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-26T09:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389811#M422713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry; but you have to tell me clearly what you values you expect to see!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 09:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389811#M422713</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-26T09:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389812#M422714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;The returned quantity is also wrong...&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;How is it wrong when we are counting Distinct DeliveryID?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and you can see Customer 111 has returned only &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;DeliveryID&amp;nbsp; =&lt;/SPAN&gt;1 , so that is correct&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if you want to see how many offers then change to Distinct&amp;nbsp; Returned.OfferID&amp;nbsp; or&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;distinct &lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp; Returned.ItemId &lt;/STRONG&gt;to see how many Items were returned&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 09:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389812#M422714</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-26T09:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389813#M422715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for customer 111 it shows:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Cust_111_New.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/174768_Cust_111_New.png" style="height: 165px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached the desired output in the post:&lt;/P&gt;&lt;P&gt;When a customer is selected, it should display the relevant quantities.&lt;/P&gt;&lt;P&gt;This is where I was stuck.. because I Had trouble to add a customer key..&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Metrics_Delivered_Returned.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174767_Metrics_Delivered_Returned.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 09:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389813#M422715</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-08-26T09:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389814#M422716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think the issue is because there isn't a record for Delivery ID that has return items, like the ones created for 2 and 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's why I can't count delivered items for delivery 1.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Cust_111_missing_delivery.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174770_Cust_111_missing_delivery.png" style="height: 153px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 10:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389814#M422716</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-08-26T10:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 Fact tables that share  Hierarchy and a key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389815#M422717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what you are trying to achieve now, can you tell me exact numbers that you expect to see!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as i already gave you the expressions to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;to count the deliveries that are not returned you should be using the flag that has been created&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;lt;&amp;lt;CORRECTION&amp;gt;&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Example&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Deliveries that were not returned will be&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;count({&amp;lt;%KEY_ReturnedDelivery={"=isnull(Returned.ReturnedFlag)"}&amp;gt;}DISTINCT DeliveryID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Deliveries that were returned will be&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Count({&amp;lt;&lt;STRONG style="font-style: inherit; font-size: 13px;"&gt;Returned.ReturnedFlag&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;=&lt;/SPAN&gt;{1}&amp;gt;}Distinct DeliveryID)&amp;nbsp;&amp;nbsp;&amp;nbsp; // equal to 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Can you post what expressions you are using?&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 10:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-2-Fact-tables-that-share-Hierarchy-and-a-key/m-p/1389815#M422717</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-26T10:12:34Z</dc:date>
    </item>
  </channel>
</rss>

