<?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: help on key table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985476#M948244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sources are just Excel files. Currently, it works without any problem. I don't have much database or programming knowledge, so I don't want to play with it a lot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to replace the synthetic table with a key table. but I couldn't figure out which fields to concat to create a key or maybe keys &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply by the way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Dec 2015 11:44:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-25T11:44:35Z</dc:date>
    <item>
      <title>help on key table</title>
      <link>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985474#M948242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm confused about how to create a correct key table. Can anybody advise me on which fields I should use to create a key table on attached table diagram?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Dec 2015 07:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985474#M948242</guid>
      <dc:creator />
      <dc:date>2015-12-25T07:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: help on key table</title>
      <link>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985475#M948243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on the current shape of the data model, I would start with joining a bunch of tables and take it from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does the source data model look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Dec 2015 09:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985475#M948243</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-12-25T09:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: help on key table</title>
      <link>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985476#M948244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sources are just Excel files. Currently, it works without any problem. I don't have much database or programming knowledge, so I don't want to play with it a lot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to replace the synthetic table with a key table. but I couldn't figure out which fields to concat to create a key or maybe keys &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply by the way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Dec 2015 11:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985476#M948244</guid>
      <dc:creator />
      <dc:date>2015-12-25T11:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: help on key table</title>
      <link>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985477#M948245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Firat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the Data Model built by Qlikview should work without issue. Nevertheless, if you want to remove Syn generation you can have a look into the 2 scripts I attached. One is just reproducing same Data Model using 2 Keys One built with Year, MonthNo and ShopName and the other One for the Calendar built with Year and MonthNo.&lt;/P&gt;&lt;P&gt;The second script is another way over many others where instead of keeping all tables we try to build a central main table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish you a Merry Christmas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gilles&lt;/P&gt;&lt;P&gt;PS : Join the sample Data created for the purpose of the demo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Dec 2015 11:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985477#M948245</guid>
      <dc:creator />
      <dc:date>2015-12-25T11:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: help on key table</title>
      <link>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985478#M948246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;If you don't want change a model, y&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;ou must create&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a key&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in each table: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;Year &amp;amp; '|' &amp;amp; MonthNo &amp;amp; '|' &amp;amp; ShopName as %YEAR_MONTH_SHOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then create a link table:&lt;/P&gt;&lt;P&gt;Key_table:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldValue('%YEAR_MONTH_SHOP', IterNo()) as %YEAR_MONTH_SHOP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(FieldValue('%YEAR_MONTH_SHOP', IterNo()), '|', 1) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(FieldValue('%YEAR_MONTH_SHOP', IterNo()), '|', 2) as MonthNo,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(FieldValue('%YEAR_MONTH_SHOP', IterNo()), '|', 3) as ShopName&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutoGenerate (1)&lt;/P&gt;&lt;P&gt;While not IsNull(FieldValue('%YEAR_MONTH_SHOP', IterNo()));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt; &lt;/SPAN&gt;Feld&amp;nbsp; "ShopName" &lt;SPAN class="hps"&gt;is missing in &lt;/SPAN&gt;&lt;SPAN class="hps"&gt; Calendar table&lt;/SPAN&gt;, and we can&amp;nbsp; &lt;SPAN class="hps"&gt;create&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="hps"&gt;another&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;key Year &amp;amp; '|' &amp;amp; MonthNo and put&amp;nbsp; it in the link table:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;SubField(FieldValue('%YEAR_MONTH_SHOP', IterNo()), '|', 1) &amp;amp; '|' &amp;amp; SubField(FieldValue('%YEAR_MONTH_SHOP', IterNo()), '|', 2)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Dec 2015 12:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985478#M948246</guid>
      <dc:creator>asgardd2</dc:creator>
      <dc:date>2015-12-25T12:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: help on key table</title>
      <link>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985479#M948247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your main Calendar Dimension Key looks like a composite of:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;Year&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;MonthNo&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd make this into a &lt;EM&gt;MonthYear&lt;/EM&gt; field using the MakeDate() and MonthName() functions. You already have a &lt;EM&gt;MonthYear&lt;/EM&gt; field in your &lt;EM&gt;MasterCalendar&lt;/EM&gt; table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your other Dimension Key looks like &lt;EM&gt;ShopName&lt;/EM&gt;.&amp;nbsp; Plus you have &lt;EM&gt;Customer&lt;/EM&gt;, but that only associates via &lt;EM&gt;ShopName&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the rest of the tables they look like Facts, all with the same key of &lt;EM&gt;$Syn 3&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These I would combine into a single Fact Table, using Joins, ApplyMaps or Concatenates, depending on your actual data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus I would end up with a classic Star Schema with :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A single central &lt;EM&gt;Fact&lt;/EM&gt; Table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A &lt;EM&gt;Calendar&lt;/EM&gt; Dimension Table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A &lt;EM&gt;Shop&lt;/EM&gt; Dimension Table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A &lt;EM&gt;Customer / Shop&lt;/EM&gt; Dimension Table [Not convinced about this table - you need to look at your source data / requirements]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Dec 2015 14:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985479#M948247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-25T14:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: help on key table</title>
      <link>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985480#M948248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anton, this is how it looks now: (can be perfected but works for me)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110004_table.JPG" style="height: 284px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 06:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-on-key-table/m-p/985480#M948248</guid>
      <dc:creator />
      <dc:date>2015-12-28T06:49:51Z</dc:date>
    </item>
  </channel>
</rss>

