<?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: Removing synthetic Key from the Data model below in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084769#M18043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert. That is really helpful. However, I do not fully understand how that will work. Within the SalesandPurchases Table, there may be duplicate records. Meaning there may be two purchase/sale records for the same Item from the same Warehouse on the same date. In that case this would not account for that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the link that I was looking at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/" title="http://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/"&gt;http://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2016 17:08:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-27T17:08:41Z</dc:date>
    <item>
      <title>Removing synthetic Key from the Data model below</title>
      <link>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084766#M18040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ave attached a screenshot of my current data model. &lt;/P&gt;&lt;P&gt;I'm not entirely sure how I would get rid of the synthetic keys here. Can anyone provide a good solution? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="data model1.PNG" class="jive-image image-1" src="/legacyfs/online/112710_data model1.PNG" style="height: 377px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 15:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084766#M18040</guid>
      <dc:creator />
      <dc:date>2016-01-27T15:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Removing synthetic Key from the Data model below</title>
      <link>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084767#M18041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Asma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't explain everything in a single community post, but I can recommend to you my new book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=IN55M5EPRHLRBWIQ"&gt;QlikView Your Business&lt;/A&gt;. In the book, I explain all the data modelling techniques that are required here (and a lot more), and I even describe the analytical solution that's very similar to yours - Inventory Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming soon to Milan, Italy!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084767#M18041</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-01-27T16:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Removing synthetic Key from the Data model below</title>
      <link>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084768#M18042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several possible solutions. If the sales/purchase transactions are not directly related to inventory transaction you could simply concatenate the two tables and add a field for the transaction type. If a sales/purchase transaction must be directly related to inventory transactions you can create a link table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a field in both fact tables: autonumber(TransactionDate &amp;amp; '|' &amp;amp; masterid &amp;amp; '|'&amp;amp; warehouse) as LinkKey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create the link table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LinkTable:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LOAD DISTINCT LinkKey, TransactionDate, masterid, warehouse FROM DailyInventory;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CONCATENTAT(LinkTable)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD DISTINCT LinkKey, TransactionDate, masterid, warehouse FROM SalesAndPurchases;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Drop the TransactionDate, masterid and warehouse fields from the two fact tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Once you understand how and why this works use the &lt;A href="https://github.com/RobWunderlich/Qlikview-Components/releases"&gt;Qlik Components Library&lt;/A&gt; to create that necessary link table for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084768#M18042</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-27T16:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Removing synthetic Key from the Data model below</title>
      <link>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084769#M18043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert. That is really helpful. However, I do not fully understand how that will work. Within the SalesandPurchases Table, there may be duplicate records. Meaning there may be two purchase/sale records for the same Item from the same Warehouse on the same date. In that case this would not account for that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the link that I was looking at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/" title="http://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/"&gt;http://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 17:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084769#M18043</guid>
      <dc:creator />
      <dc:date>2016-01-27T17:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Removing synthetic Key from the Data model below</title>
      <link>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084770#M18044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem. All records will have the same LinkKey so they are associated correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 17:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084770#M18044</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-27T17:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Removing synthetic Key from the Data model below</title>
      <link>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084771#M18045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me disagree with you here... This is one of those examples where Link Table wouldn't quite work well and Concatenated Facts would work a lot better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main reason for that is the field Transaction Date - in the Inventory table, Transaction Date means the day of the inventory transaction or sometimes the date of the inventory snapshot that was taken. In Sales records, the same field means the date of Sale, while in Purchasing the same field means the date of Purchase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linking these facts using the Link Table would lead to wrong associations - the Inventory balances will only link to Sales records if they happened on the same Date. This is unlikely the desired result here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the preferred solution here is the Concatenated Fact. However, to understand all the intricacies of building a proper Concatenated Fact and restoring all broken associations, one needs to learn it methodically, not just read about it on the forum, - hence my recommendation to read it in &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=IN55M5EPRHLRBWIQ"&gt;my book&lt;/A&gt;, or to learn advanced Data Modelling with Barry Harmsen at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 18:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084771#M18045</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-01-27T18:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Removing synthetic Key from the Data model below</title>
      <link>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084772#M18046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Let me disagree with you here... This is one of those examples where Link Table wouldn't quite work well and Concatenated Facts would work a lot better.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't think we disagree. I suggested a concatenated fact table as well. But that by itself does not solve the issue of sales, purchase and inventory dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 18:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Removing-synthetic-Key-from-the-Data-model-below/m-p/1084772#M18046</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-27T18:49:13Z</dc:date>
    </item>
  </channel>
</rss>

