<?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 BOM linking issue - two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58609#M9734</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 need to link the date of two fact tables: invoices and purchases.&lt;/P&gt;&lt;P&gt;I work for a group of industrial companies. One of these is a contractor so&lt;SPAN style="font-size: 10pt;"&gt; it buy the components from a company (of the same group) and it sell the product to the same company after a manufacture process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have a complex data model but the problem comes from these 3 tables: Bills of materials, Invoices and Purchases &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BOMs:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;product_code,&lt;/P&gt;&lt;P&gt;component,&lt;/P&gt;&lt;P&gt;quantity&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invoice:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;invoice_date, &lt;/P&gt;&lt;P&gt;product, &lt;/P&gt;&lt;P&gt;invoice_qty,&lt;/P&gt;&lt;P&gt;invoice_price&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Purchase:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;purchase_date,&lt;/P&gt;&lt;P&gt;component, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;purchase_qty,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;purchase_price&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I try to create a master calendar to link purchases and invoces like this:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Master Calendar:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Date, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;invoice_date,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;purchase_date&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;but there is a circolar problem.. maybe i must create a bridge table? How?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I need to see the difference between cost and prices... and want to select different linked periods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2018 15:15:50 GMT</pubDate>
    <dc:creator>captain89</dc:creator>
    <dc:date>2018-06-05T15:15:50Z</dc:date>
    <item>
      <title>BOM linking issue - two dates</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58609#M9734</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 need to link the date of two fact tables: invoices and purchases.&lt;/P&gt;&lt;P&gt;I work for a group of industrial companies. One of these is a contractor so&lt;SPAN style="font-size: 10pt;"&gt; it buy the components from a company (of the same group) and it sell the product to the same company after a manufacture process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have a complex data model but the problem comes from these 3 tables: Bills of materials, Invoices and Purchases &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BOMs:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;product_code,&lt;/P&gt;&lt;P&gt;component,&lt;/P&gt;&lt;P&gt;quantity&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invoice:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;invoice_date, &lt;/P&gt;&lt;P&gt;product, &lt;/P&gt;&lt;P&gt;invoice_qty,&lt;/P&gt;&lt;P&gt;invoice_price&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Purchase:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;purchase_date,&lt;/P&gt;&lt;P&gt;component, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;purchase_qty,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;purchase_price&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I try to create a master calendar to link purchases and invoces like this:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Master Calendar:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Date, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;invoice_date,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;purchase_date&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;but there is a circolar problem.. maybe i must create a bridge table? How?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I need to see the difference between cost and prices... and want to select different linked periods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 15:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58609#M9734</guid>
      <dc:creator>captain89</dc:creator>
      <dc:date>2018-06-05T15:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: BOM linking issue - two dates</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58610#M9735</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;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on every table (Invoice, Purchase), rename every specific date field to Date, like this:&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Invoice:&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;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LOAD&lt;/STRONG&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;invoice_date as Date,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;product,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;invoice_qty,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;invoice_price&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Purchase:&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;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LOAD&lt;/STRONG&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;purchase_date as Date,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;component,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;purchase_qty,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;purchase_price&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concatenate these two tables, like this&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;Invoice&lt;/STRONG&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;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LOAD&lt;/STRONG&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;Date,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;product,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;invoice_qty,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;invoice_price&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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&gt;Concatenante(&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;Invoice)&lt;/STRONG&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;/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;Purchase:&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;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LOAD&lt;/STRONG&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;Date,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;component,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;purchase_qty,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;purchase_price&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Like this, you will have one physical table connected with one field to the Calendar table.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;but depending on the rest of the model, this solution may not be the right one for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 15:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58610#M9735</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-06-05T15:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: BOM linking issue - two dates</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58611#M9736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youssef. Thanks for your answer.&lt;/P&gt;&lt;P&gt;I think of this solution too.. but in this case I create a single fact table with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date, &lt;/P&gt;&lt;P&gt;product, &lt;/P&gt;&lt;P&gt;component&lt;/P&gt;&lt;P&gt;invoce_qty,&lt;/P&gt;&lt;P&gt;invoice_price,&lt;/P&gt;&lt;P&gt;purchase_qty,&lt;/P&gt;&lt;P&gt;purchase_price&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the join with BOMs...?? product and component will create a synt key i think.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I'm creating 3 calendars and handle the problem with expression and set analysis... i'm looking for a better solution&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 15:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58611#M9736</guid>
      <dc:creator>captain89</dc:creator>
      <dc:date>2018-06-05T15:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: BOM linking issue - two dates</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58612#M9737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see, will try to create sample data and get back to you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 16:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58612#M9737</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-06-05T16:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: BOM linking issue - two dates</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58613#M9738</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;would you be able to take a screen shot of your Qlik datamodel? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a brief description on how the component and products are linked on the BOM table, is it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product1, Component1, qty,...&lt;/P&gt;&lt;P&gt;Product1, Component2, qty,...&lt;/P&gt;&lt;P&gt;Product1, Component3, qty,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the quantity field of the Bom table represents what type of quantity? is it the Purchase Qty ? the Invoice Qty ? or another calculated qty ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 11:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58613#M9738</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-06-06T11:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: BOM linking issue - two dates</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58614#M9739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can create a Bridge table to link BOM to your fact or maybe concatenate it, it will be interesting if you can make an extraction of some lines from BOM, INVOICE, PURCHASE for one or two product for example, or create Sample data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 13:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58614#M9739</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-06-06T13:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: BOM linking issue - two dates</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58615#M9740</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;in the Bom table there is the quantity of the component needed to make the product code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 11:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-linking-issue-two-dates/m-p/58615#M9740</guid>
      <dc:creator>captain89</dc:creator>
      <dc:date>2018-06-15T11:27:52Z</dc:date>
    </item>
  </channel>
</rss>

