<?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 how to Remove synthetic key with multiple facts has common calendar i.e. common date dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/how-to-Remove-synthetic-key-with-multiple-facts-has-common/m-p/1524731#M37675</link>
    <description>&lt;P&gt;I have&amp;nbsp;three fact tables and two dimension table. This will form a synthetic key between&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;fact&amp;nbsp;order : date, orderid, total_amount,order_item_id,&lt;/P&gt;&lt;P&gt;fact&amp;nbsp;order_item : date,&lt;SPAN&gt;order_item_id,product_id,amount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fact cart: date, no_of_carts,product_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;product_dimension: product_id,productname&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;calendar_dimension : date,weekno, month,year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this forming 3 synth keys... how to avoid it...&amp;nbsp;actually date and product_id , date and orderid are common in two tables .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;need to create pivot table show the below dim,measures in single table format&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;date ( year to date drill down) , productname,amount,orderid,no_of_carts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and create some individual reports for analysis...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;wat is the best way to model the data.... how to avoid date from synth key&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:40:54 GMT</pubDate>
    <dc:creator>jithu</dc:creator>
    <dc:date>2024-11-16T21:40:54Z</dc:date>
    <item>
      <title>how to Remove synthetic key with multiple facts has common calendar i.e. common date dimension</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-Remove-synthetic-key-with-multiple-facts-has-common/m-p/1524731#M37675</link>
      <description>&lt;P&gt;I have&amp;nbsp;three fact tables and two dimension table. This will form a synthetic key between&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;fact&amp;nbsp;order : date, orderid, total_amount,order_item_id,&lt;/P&gt;&lt;P&gt;fact&amp;nbsp;order_item : date,&lt;SPAN&gt;order_item_id,product_id,amount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fact cart: date, no_of_carts,product_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;product_dimension: product_id,productname&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;calendar_dimension : date,weekno, month,year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this forming 3 synth keys... how to avoid it...&amp;nbsp;actually date and product_id , date and orderid are common in two tables .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;need to create pivot table show the below dim,measures in single table format&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;date ( year to date drill down) , productname,amount,orderid,no_of_carts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and create some individual reports for analysis...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;wat is the best way to model the data.... how to avoid date from synth key&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-Remove-synthetic-key-with-multiple-facts-has-common/m-p/1524731#M37675</guid>
      <dc:creator>jithu</dc:creator>
      <dc:date>2024-11-16T21:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to Remove synthetic key with multiple facts has common calendar i.e. common date dimension</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-Remove-synthetic-key-with-multiple-facts-has-common/m-p/1524741#M37676</link>
      <description>&lt;P&gt;May be one of the below&lt;/P&gt;&lt;P&gt;1. Using ALIAS to rename the field&lt;/P&gt;&lt;P&gt;2. Link Table / Bridge table for your tables&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 09:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-Remove-synthetic-key-with-multiple-facts-has-common/m-p/1524741#M37676</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-12-28T09:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to Remove synthetic key with multiple facts has common calendar i.e. common date dimension</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-Remove-synthetic-key-with-multiple-facts-has-common/m-p/1524759#M37678</link>
      <description>Hi, synth keys are created because more than one field is used to reate the relationship between tables, you can reate a composite key that merges key fields in only one field, ie:&lt;BR /&gt;fact_cart:&lt;BR /&gt;LOAD date &amp;amp;'_'&amp;amp; product_id as IdFactCart,&lt;BR /&gt;no_of_carts&lt;BR /&gt;From/Resident...&lt;BR /&gt;&lt;BR /&gt;Another option is removing fields from one of the tables, in axample, if one order_id only belongs to one date, you can remove date field from fact_order and keep only the one in fact_order_item.&lt;BR /&gt;&lt;BR /&gt;I think that fact_order_item should be your fact table, the others are dimensional tables that should be linked with the fact table using only one field as link (as said before it can be a composite key to use more than one field).</description>
      <pubDate>Fri, 28 Dec 2018 10:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-Remove-synthetic-key-with-multiple-facts-has-common/m-p/1524759#M37678</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-12-28T10:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to Remove synthetic key with multiple facts has common calendar i.e. common date dimension</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-Remove-synthetic-key-with-multiple-facts-has-common/m-p/1525032#M37716</link>
      <description>&lt;P&gt;creating alias for necessary join will create a circular reference ...&lt;/P&gt;&lt;P&gt;can you give me an example of how can I create a link/bridge table ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;assume there are two fact tables :&lt;/P&gt;&lt;P&gt;order_item_fact: orderid, order_item_id,productID,date,order_amount&lt;/P&gt;&lt;P&gt;cart_item_fact:cartid,cart_item_id,&lt;SPAN&gt;productID&lt;/SPAN&gt;,date,cart_amount&lt;/P&gt;&lt;P&gt;dimension:&lt;/P&gt;&lt;P&gt;product_dim: productid,productname,product_hierarchy&lt;/P&gt;&lt;P&gt;date: date, week,month,qtr, year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 05:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-Remove-synthetic-key-with-multiple-facts-has-common/m-p/1525032#M37716</guid>
      <dc:creator>jithu</dc:creator>
      <dc:date>2018-12-31T05:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to Remove synthetic key with multiple facts has common calendar i.e. common date dimension</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-Remove-synthetic-key-with-multiple-facts-has-common/m-p/1525034#M37717</link>
      <description>&lt;P&gt;Thanks for the quick reply:&amp;nbsp;&lt;/P&gt;&lt;P&gt;PLease assume the below scenario : even this will create one synth key. how to avoid that&lt;/P&gt;&lt;P&gt;productID, date will create a synth key here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;assume there are two fact tables :&lt;/P&gt;&lt;P&gt;order_item_fact: orderid, order_item_id,productID,date,order_amount&lt;/P&gt;&lt;P&gt;cart_item_fact:cartid,cart_item_id,&lt;SPAN&gt;productID&lt;/SPAN&gt;,date,cart_amount&lt;/P&gt;&lt;P&gt;dimension:&lt;/P&gt;&lt;P&gt;product_dim: productid,productname,product_hierarchy&lt;/P&gt;&lt;P&gt;date: date, week,month,qtr, year&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 05:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-Remove-synthetic-key-with-multiple-facts-has-common/m-p/1525034#M37717</guid>
      <dc:creator>jithu</dc:creator>
      <dc:date>2018-12-31T05:55:14Z</dc:date>
    </item>
  </channel>
</rss>

