<?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: Creating Key column in DIM and Loading Fact? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075600#M358845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest that you upload a sample qvw or at least your script. I would not use ApplyMap(), you can just use AutoNumber on the key fields for both the dimension and the fact tables. Note that Autonumber() resets for each reload, so the autonumber for the fact and dimension must be generated in the same reload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2016 05:03:49 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-02-09T05:03:49Z</dc:date>
    <item>
      <title>Creating Key column in DIM and Loading Fact?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075596#M358841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a few dimension tables which joins to the Fact table on a key column. However, the key column has string values with a length of 38 characters.&lt;/P&gt;&lt;P&gt;To avoid joining the tables on String based key columns, I am trying to create Auto number column in the dimension tables.&lt;/P&gt;&lt;P&gt;However, loading the fact tables is challenging for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i use ApplyMap() function in fact table to call in the newly created auto number column values from the dimensions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help here is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Shyam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 04:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075596#M358841</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-02-09T04:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Key column in DIM and Loading Fact?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075597#M358842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload some sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 04:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075597#M358842</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2016-02-09T04:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Key column in DIM and Loading Fact?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075598#M358843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using AutoNumberHash128 creating a key from multiple fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 04:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075598#M358843</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2016-02-09T04:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Key column in DIM and Loading Fact?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075599#M358844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;Could you elaborate what difficulties you are facing while loading the fact tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to help you out.&lt;/P&gt;&lt;P&gt;when you try to use multiple autonumber() generated keys, give index as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employeedim:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;autonumber(employeeID,'employeeIndex') as employeeKey,&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from employee.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Customerdim:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;load &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;autonumber(CustomerID,'customerIndex') as customerKey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;from customer.qvd;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;fact:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;load&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;autonumber(employeeID,'employeeIndex') as employeeKey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;autonumber(CustomerID,'customerIndex') as customerKey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;from fact.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 04:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075599#M358844</guid>
      <dc:creator>harsh44_bhatia</dc:creator>
      <dc:date>2016-02-09T04:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Key column in DIM and Loading Fact?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075600#M358845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest that you upload a sample qvw or at least your script. I would not use ApplyMap(), you can just use AutoNumber on the key fields for both the dimension and the fact tables. Note that Autonumber() resets for each reload, so the autonumber for the fact and dimension must be generated in the same reload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 05:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075600#M358845</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-02-09T05:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Key column in DIM and Loading Fact?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075601#M358846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use the Hashkey or Auto haskey....that should be better ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 05:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075601#M358846</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-02-09T05:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Key column in DIM and Loading Fact?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075602#M358847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached qvw sample document with 10 records in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used one DIM_TABLE and FACT_TABLE in the document.&lt;/P&gt;&lt;P&gt;Each of these are joined on RVA_PK column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, they are string column. I am trying to join them using a Numeric key column rather the string to improve the performance.&lt;/P&gt;&lt;P&gt;I am trying to create a numeric column in dimension table. Once this is done I would like to load the fact table and join them on new key column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further help on this is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 05:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075602#M358847</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-02-09T05:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Key column in DIM and Loading Fact?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075603#M358848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the Autonumber(Field) script function in Dimension and in Fact Table and used these new Autonumber(Field) as Key to join both these tables.&lt;/P&gt;&lt;P&gt;Note:&lt;SPAN style="font-size: 13.3333px;"&gt;Please check the attached sample QVW doc I have uploaded&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood if both the tables are in the same load then unique values are generated in these both tables. Moreover, the generated values will be same in both the tables if the Field used to generate Autonumber has same values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Table1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Col1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autonumber(Col1)&lt;/P&gt;&lt;P&gt;abc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;XYZ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 976&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;lkj&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 897&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Table2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ColX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ColY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autonumber(Col1)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;abc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;XYZ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 976&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;poi&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Now I can use the new Autonumber(Col) to join both these tables.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please correct me if I am wrong.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please check the attached sample QVW doc I have uploaded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 23:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075603#M358848</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-02-09T23:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Key column in DIM and Loading Fact?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075604#M358849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a new document as an example. Here I have used three tables and used Autonumber() function on all of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am not getting the wrong results.&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;As shown in the attached example, why I am not able to see values under C1 or C2 when I select C5=Northern Place?&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;Please view attached example.&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;I appreciate any help on this. Thanks in advance.&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;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 01:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075604#M358849</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-02-12T01:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Key column in DIM and Loading Fact?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075605#M358850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have autonumbered O4 in T3. You must also autonumber O4 in T2 to create matching values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 04:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Key-column-in-DIM-and-Loading-Fact/m-p/1075605#M358850</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-02-12T04:32:35Z</dc:date>
    </item>
  </channel>
</rss>

