<?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: Dimension with no unique key in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400514#M700124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I might be missing something but given a sales order it's not possible to tell the right sales rep. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Mayil approach, you can create a more complex key, using Customer &amp;amp; '|' &amp;amp; State &amp;amp; '|' &amp;amp; Rep as Key, but there would be no link to the sales, right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you provide us some data samples, we can better understand the problem.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2012 22:07:24 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2012-11-06T22:07:24Z</dc:date>
    <item>
      <title>Dimension with no unique key</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400505#M700115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a dimension without a unique key.&lt;/P&gt;&lt;P&gt;say for example, in Customer dimension, one customer can belong to many REP’s in same State.&lt;/P&gt;&lt;P&gt;how can I join this dimension with my Transactions fact table?&lt;/P&gt;&lt;P&gt;Ex Customer Table:&lt;/P&gt;&lt;P&gt;Customer1,State1,REP1&lt;/P&gt;&lt;P&gt;Customer1,State1,REP2&lt;/P&gt;&lt;P&gt;Customer1,State1,REP3…..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, any ideas to generate a unique key in this scenario?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 06:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400505#M700115</guid>
      <dc:creator />
      <dc:date>2012-11-05T06:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension with no unique key</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400506#M700116</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;Can u provide structure for your FACT's and DIMENTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 06:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400506#M700116</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2012-11-05T06:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension with no unique key</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400507#M700117</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;You could use AutonumberHash256 function to generate unique id:&lt;/P&gt;&lt;P&gt;AutonumberHash256(Customer, REP) as IDCustomerREP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 07:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400507#M700117</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-11-05T07:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension with no unique key</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400508#M700118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sushil &amp;amp; Whiteline,&lt;/P&gt;&lt;P&gt;i think, i didn't explain the scenario properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have Customer &amp;amp; State fields in sales fact table.&lt;/P&gt;&lt;P&gt;i need to connect this Sales table to Customer dimension by depending on those fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 21:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400508#M700118</guid>
      <dc:creator />
      <dc:date>2012-11-05T21:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension with no unique key</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400509#M700119</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; What are the fields in sales table??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 22:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400509#M700119</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-11-05T22:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension with no unique key</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400510#M700120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ramasamy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;SO No,Customer, State,Revenue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer:&lt;/P&gt;&lt;P&gt;Customer,State,Rep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 22:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400510#M700120</guid>
      <dc:creator />
      <dc:date>2012-11-05T22:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension with no unique key</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400511#M700121</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; Then customer is common field to each other. so they automatically combine with each other but change the state field name as saleState. Otherwise, it form loop or synthetic key..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;Load customer&amp;amp;''&amp;amp;State as Key,customer as salesCutomer, state as salesState, revenue,soNo from sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load customer&amp;amp;state as Key,state, customer ,rep from customertable where exists(Key,Key);&lt;/P&gt;&lt;P&gt;//by this,second table load only if key exists in the first table only..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this link:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small loading" href="http://www.quickqlearqool.nl/?p=910" style="font-size: 13px; color: #007fc0;"&gt;http://www.quickqlearqool.nl/?p=910&lt;/A&gt;&lt;/P&gt;&lt;P&gt; for join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 22:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400511#M700121</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-11-05T22:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension with no unique key</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400512#M700122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but the problem is customer&amp;amp;state as Key is not a unique key in Customer dimension.&lt;/P&gt;&lt;P&gt;one customer can have many rep's for same state.&lt;/P&gt;&lt;P&gt;Ex Customer Table:&lt;/P&gt;&lt;P&gt;Customer1,State1,REP1&lt;/P&gt;&lt;P&gt;Customer1,State1,REP2&lt;/P&gt;&lt;P&gt;Customer1,State1,REP3…..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 22:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400512#M700122</guid>
      <dc:creator />
      <dc:date>2012-11-05T22:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension with no unique key</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400513#M700123</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; then u tey first approach..make&amp;nbsp; customer field as common to both tsble n rename state field.. How u expecting &lt;/P&gt;&lt;P&gt;The result..can u post a sample file n expecting result..by that can easy&amp;nbsp; to solve ur requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join , inner join, left join, concantenate concept also use to combine tables but without kowing the expected result its difficult to find&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 23:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400513#M700123</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-11-05T23:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension with no unique key</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400514#M700124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I might be missing something but given a sales order it's not possible to tell the right sales rep. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Mayil approach, you can create a more complex key, using Customer &amp;amp; '|' &amp;amp; State &amp;amp; '|' &amp;amp; Rep as Key, but there would be no link to the sales, right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you provide us some data samples, we can better understand the problem.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 22:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400514#M700124</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-11-06T22:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension with no unique key</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400515#M700125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;say for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[SO, Customer, State, Revenue &lt;BR /&gt;&lt;BR /&gt;0,customer1,State1,15 &lt;BR /&gt;&lt;BR /&gt;1,customer1,State1,25&lt;BR /&gt;&lt;BR /&gt;2,customer2,State1,45&lt;BR /&gt;&lt;BR /&gt;3,customer1,State2,35]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer, State, REP&lt;BR /&gt;&lt;BR /&gt;customer1,State1,REP1,&lt;BR /&gt;&lt;BR /&gt;customer1,State1,REP2]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;my desired&amp;nbsp; output would be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Customer,State,REP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;customer1,State1,REP1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;customer1,State1,REP2&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 05:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400515#M700125</guid>
      <dc:creator />
      <dc:date>2012-11-07T05:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension with no unique key</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400516#M700126</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 script, you will get the desired output, but the records will be duplicated when you use SO and Revenue dimensions because many-many mapping between these tables.&amp;nbsp; Check attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Customer &amp;amp; '-' &amp;amp; State AS Key,&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INLINE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[SO, Customer, State, Revenue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0,customer1,State1,15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1,customer1,State1,25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2,customer2,State1,45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3,customer1,State2,35];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt; Customer &amp;amp; '-' &amp;amp; State AS Key,&lt;/P&gt;&lt;P&gt;REP&lt;/P&gt;&lt;P&gt;INLINE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Customer, State, REP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customer1,State1,REP1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customer1,State1,REP2];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 06:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-with-no-unique-key/m-p/400516#M700126</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-11-07T06:54:07Z</dc:date>
    </item>
  </channel>
</rss>

