<?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: Star Schema How to Join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562155#M441381</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am bit confused that we are missing few columns. PFA Source for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2019 00:25:27 GMT</pubDate>
    <dc:creator>poooja</dc:creator>
    <dc:date>2019-03-28T00:25:27Z</dc:date>
    <item>
      <title>Star Schema How to Join</title>
      <link>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562060#M441372</link>
      <description>&lt;P&gt;Hi Qliks,&lt;/P&gt;&lt;P&gt;Need an help to build Star Schema&lt;/P&gt;&lt;P&gt;Order table has orderdate, customer num, cust name, itemnumber, order num, ordered qty.&lt;BR /&gt;Shipped table has shipped date, order date, order num, item num,item description, shipped qty, cust num, cust name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;How to join them to get :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. ordered qty vs shipped qty by item description&lt;BR /&gt;2. Weekly monthly ordered qty vs shipped qty&lt;/P&gt;&lt;P&gt;Any idea is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 17:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562060#M441372</guid>
      <dc:creator>poooja</dc:creator>
      <dc:date>2019-03-27T17:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Star Schema How to Join</title>
      <link>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562074#M441375</link>
      <description>More general opinion as i am not sure about how your data is arranged&lt;BR /&gt;i would design it in this way order--&amp;gt; orderitem&lt;BR /&gt;orderitem can contain the shipped details as well as ordered quantity.&lt;BR /&gt;on initial thought that should cover #1 and be flexible&lt;BR /&gt;&lt;BR /&gt;for item # 2 as you have 2 date fields think of something like a canonical date&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Canonical-Date/ba-p/1463578" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Canonical-Date/ba-p/1463578&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;p.s. by coincidence the data model hic describes in the above link is similar to what i was mentioning in the top</description>
      <pubDate>Wed, 27 Mar 2019 18:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562074#M441375</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-03-27T18:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Star Schema How to Join</title>
      <link>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562080#M441377</link>
      <description>Hi ,&lt;BR /&gt;For the option 1 we have to get ordered qty vs shipped qty by item description but our order table has only item num. How to match these?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Pooja</description>
      <pubDate>Wed, 27 Mar 2019 18:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562080#M441377</guid>
      <dc:creator>poooja</dc:creator>
      <dc:date>2019-03-27T18:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Star Schema How to Join</title>
      <link>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562081#M441378</link>
      <description>&lt;P&gt;you have to convert you table into the structure mentioned above.&lt;BR /&gt;You dont have an order id? that should be the link between order and orderlineitems table&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 18:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562081#M441378</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-03-27T18:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Star Schema How to Join</title>
      <link>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562088#M441380</link>
      <description>&lt;P&gt;use ordernumber as the unique identifier&lt;/P&gt;&lt;P&gt;going from column names you mentioned&lt;/P&gt;&lt;P&gt;below is rough approach (logic should be sound not the syntax)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Order:
load
distinct
OrderNum //Joining key to order line details
,orderdate
,customer num
, cust name
from ordersource;

OrderLineItems:&lt;BR /&gt;load&lt;BR /&gt;&lt;SPAN&gt;itemnumber, ordernum, ordered qty&lt;/SPAN&gt;&lt;BR /&gt;from ordersource;&lt;BR /&gt;
left join(OrderLineItems) //Joining key to order line details will be order num and item num&lt;BR /&gt;load&lt;BR /&gt;&lt;SPAN&gt; ordernum&lt;BR /&gt;, item num&lt;BR /&gt;,item description&lt;BR /&gt;, shipped qty&lt;BR /&gt;&lt;/SPAN&gt;, &lt;SPAN&gt;shipped date&lt;/SPAN&gt;&lt;BR /&gt;from ShippedDetailsSource&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;result is tables&lt;/P&gt;&lt;P&gt;Order table - OrderNum&amp;nbsp; ,orderdate ,customer num , cust name&lt;/P&gt;&lt;P&gt;OrderLineItems -&amp;nbsp;&lt;SPAN&gt;itemnumber, ordernum, ordered qty,&amp;nbsp;item description,shipped qty, shipped date&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 18:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562088#M441380</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-03-27T18:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Star Schema How to Join</title>
      <link>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562155#M441381</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am bit confused that we are missing few columns. PFA Source for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 00:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562155#M441381</guid>
      <dc:creator>poooja</dc:creator>
      <dc:date>2019-03-28T00:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Star Schema How to Join</title>
      <link>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562156#M441382</link>
      <description>I don't know your full need.&lt;BR /&gt;So Trying to point you in the right direction rathet than giving you some answer which may not fit the business need.</description>
      <pubDate>Thu, 28 Mar 2019 00:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562156#M441382</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-03-28T00:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Star Schema How to Join</title>
      <link>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562162#M441383</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to remove the synthetic key here and also need to find the below solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture1.JPG" style="width: 631px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8983i6DB0BB5FA117687E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.JPG" alt="Capture1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.JPG" style="width: 916px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8984i3A6DF71B09380C2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 00:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562162#M441383</guid>
      <dc:creator>poooja</dc:creator>
      <dc:date>2019-03-28T00:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Star Schema How to Join</title>
      <link>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562415#M441396</link>
      <description>&lt;P&gt;You can also use intervalmatch to your case of month wise Ordered and Shipping quantity&lt;/P&gt;&lt;P&gt;Shipped:&lt;BR /&gt;LOAD [Cust Num],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cust Name],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipAddr,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipCity,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderNum,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(month(OrderDate)) as start,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpectedDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemNum,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemDesc,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShippedDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( isnull(num(month(ShippedDate))),num(month(OrderDate)),num(month(ShippedDate))) as End,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(month(OrderDate))&amp;amp;if( isnull(num(month(ShippedDate))),num(month(OrderDate)),num(month(ShippedDate))) as Key,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShippedQty,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NetAmt,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Weight,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Carrier&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;FROM&lt;BR /&gt;Order_Shipped.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Shipped);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;QUALIFY * ;&lt;/P&gt;&lt;P&gt;UNQUALIFY OrderNum,Key;&lt;/P&gt;&lt;P&gt;Order:&lt;BR /&gt;LOAD [Cust Num],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cust Name],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Addr,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; City,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderNum,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemNum,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShippedDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderedQty,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status&lt;BR /&gt;FROM&lt;BR /&gt;Order_Shipped.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Order);&lt;/P&gt;&lt;P&gt;UNQUALIFY * ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;load&lt;/P&gt;&lt;P&gt;IterNo() as Month&lt;BR /&gt;autogenerate(1)&lt;BR /&gt;While IterNo()-1&amp;lt;12 ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;calendar1:&lt;BR /&gt;IntervalMatch(Month)&lt;BR /&gt;&amp;nbsp;load start,End&lt;BR /&gt;Resident Shipped ;&lt;/P&gt;&lt;P&gt;calendar:&lt;BR /&gt;load&lt;/P&gt;&lt;P&gt;Month,&lt;BR /&gt;start&amp;amp;End as Key&lt;BR /&gt;Resident calendar ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DROP Table calendar1 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And create a chart with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimension : Month&lt;/P&gt;&lt;P&gt;Expression1:&amp;nbsp; Sum ( ShiipedQty)&lt;/P&gt;&lt;P&gt;Expression2:&amp;nbsp; Sum ( order.OrderedQty)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 12:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562415#M441396</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2019-03-28T12:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Star Schema How to Join</title>
      <link>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562493#M441400</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If this is the case - are we need to create one more calendar for find weekly &amp;amp; yearly values?&lt;/P&gt;&lt;P&gt;Thanks Much for your help.&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 14:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562493#M441400</guid>
      <dc:creator>poooja</dc:creator>
      <dc:date>2019-03-28T14:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Star Schema How to Join</title>
      <link>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562814#M441437</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;Yes right , as you need a common dates for representing both the order and shipment</description>
      <pubDate>Fri, 29 Mar 2019 10:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Star-Schema-How-to-Join/m-p/1562814#M441437</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2019-03-29T10:03:08Z</dc:date>
    </item>
  </channel>
</rss>

