<?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 Avoiding Syn Keys - Please help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154661#M31212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indentify the fields to be JOINED on - create a hash value of those (say named as KEY), and rename everything else.&lt;/P&gt;&lt;P&gt;similarly even in the second table do the same - such that no field name is common in both the tables except for KEY.&lt;/P&gt;&lt;P&gt;Then it will be a simple join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 May 2010 16:04:56 GMT</pubDate>
    <dc:creator>boorgura</dc:creator>
    <dc:date>2010-05-18T16:04:56Z</dc:date>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154652#M31203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;I am busy with a sales report, but are having a problem with all the Syn keys. I am accessing SAP Business One Tables.&lt;/P&gt;&lt;P&gt;I have a table &lt;STRONG&gt;OINV&lt;/STRONG&gt; (Invoice Header) which I left joined with &lt;STRONG&gt;INV1&lt;/STRONG&gt; (Invoice Lines) as INV&lt;/P&gt;&lt;P&gt;I have a table &lt;STRONG&gt;ORIN&lt;/STRONG&gt; (Credit Memo Header) which I left joined with &lt;STRONG&gt;RIN1&lt;/STRONG&gt; (Credit Memo Lines) as RIN&lt;/P&gt;&lt;P&gt;My Sales and Qty's gets calculated by taking the fields of &lt;STRONG&gt;INV&lt;/STRONG&gt; and subtrackting the fields of &lt;STRONG&gt;RIN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Both INV &amp;amp; RIN has the same fields &amp;amp; automatically gets linked together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is when I add another table. (see this example)&lt;/P&gt;&lt;P&gt;Both INV &amp;amp; RIN has a field called ItemCode. As soon as I add another table that contains the fields ItemCode &amp;amp; ItemName, I get&lt;/P&gt;&lt;P&gt;a Syn key on ItemCode. This is only one instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment I have Syn keys for ItemCode, SlpCode, WhsCode etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 11:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154652#M31203</guid>
      <dc:creator />
      <dc:date>2010-05-18T11:04:21Z</dc:date>
    </item>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154653#M31204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Bit confused seeing your question. Can you please attach the screen shot of internal table viewer so that it is understandable.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Rikab Kothari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 11:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154653#M31204</guid>
      <dc:creator />
      <dc:date>2010-05-18T11:15:00Z</dc:date>
    </item>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154654#M31205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for that, please see attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 11:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154654#M31205</guid>
      <dc:creator />
      <dc:date>2010-05-18T11:19:05Z</dc:date>
    </item>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154655#M31206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try put alias in the field ItemCode for the table INV someting like this&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;.. PCGCode,&lt;/P&gt;&lt;P&gt;ItemCode as ItemCode_Key,&lt;/P&gt;&lt;P&gt;ItemCode, ...&lt;/P&gt;&lt;P&gt;From RIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian Seijas E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 12:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154655#M31206</guid>
      <dc:creator />
      <dc:date>2010-05-18T12:43:55Z</dc:date>
    </item>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154656#M31207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;As QlikView is linking automatically by Field Name you always have to make sure you get what you want.&lt;/P&gt;&lt;P&gt;You can either alias the fields as suggested by Christian or make use of the QUALIFY, UNQUALIFY statements (you might want to read through the manual or the help file for this).&lt;/P&gt;&lt;P&gt;It allows you to have the table name added to your field name so the 2 fields from different tables will not automatically match.&lt;/P&gt;&lt;P&gt;You can also follow a pattern where you always preceed linking fields with e.g. a "%" character and then use&lt;/P&gt;&lt;P&gt;UNQUALIFY "%*";&lt;/P&gt;&lt;P&gt;to force the correct linking and prevent unwanted ones.&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 12:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154656#M31207</guid>
      <dc:creator />
      <dc:date>2010-05-18T12:51:55Z</dc:date>
    </item>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154657#M31208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;I am not sure if this would work.&lt;/P&gt;&lt;P&gt;The thing is I do need to link all those fields together. If I give the one an alias, they won't tie up anymore.&lt;/P&gt;&lt;P&gt;I would like to know if there is a way to link those fields together without creating syn keys?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 12:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154657#M31208</guid>
      <dc:creator />
      <dc:date>2010-05-18T12:53:04Z</dc:date>
    </item>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154658#M31209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You get syn keys for tables using more than one field as unique identifier. To avoid this you would need to create a surrogate key built from the multiple key fields using e.g. Autonumber, Autonumberhash128 or Autonumberhash256. Have a look at Book 1, page 404ff.&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 13:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154658#M31209</guid>
      <dc:creator />
      <dc:date>2010-05-18T13:03:54Z</dc:date>
    </item>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154659#M31210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would create a compound surrogate key like this:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;SlpCode&lt;BR /&gt;&amp;amp; DocDate&lt;BR /&gt;&amp;amp; CardCode&lt;BR /&gt;&amp;amp; PCGCode&lt;BR /&gt;&amp;amp; ItemCode&lt;BR /&gt;&amp;amp; WhsCode as INV_KEY&lt;/P&gt;&lt;P&gt;in both INV and RIN - or use autonumber, autohash or hash if you never want to look at the surrogate key.&lt;/P&gt;&lt;P&gt;This will tie RIN to INV correctly.&lt;/P&gt;&lt;P&gt;To link to Item Master, Sales Person etc, you need to leave the code exposed on on or other of INV or RIN, but not both.&lt;/P&gt;&lt;P&gt;Assuming you can't have a credit note without an invoice, load ItemCode, SlpCode etc in INV, but not in RIN.&lt;/P&gt;&lt;P&gt;In cases where you could have an entry in either or both tables (budget - actual case), I would concatenate the tables into a single table using a row-type identifier. Qlikview aggregates correctly according to the common field values, and you can untangle the rows using set analysis where necessary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 14:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154659#M31210</guid>
      <dc:creator>RickWild64</dc:creator>
      <dc:date>2010-05-18T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154660#M31211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your problem needs the classic "Link Table" data model. You can find a description of it in a "Developer II" class materials, or simply search this site of "Link Tables" - there are plenty of threads and I think some Wiki pages describing the technique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 15:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154660#M31211</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-05-18T15:44:55Z</dc:date>
    </item>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154661#M31212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indentify the fields to be JOINED on - create a hash value of those (say named as KEY), and rename everything else.&lt;/P&gt;&lt;P&gt;similarly even in the second table do the same - such that no field name is common in both the tables except for KEY.&lt;/P&gt;&lt;P&gt;Then it will be a simple join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 16:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154661#M31212</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-05-18T16:04:56Z</dc:date>
    </item>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154662#M31213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a SAP db, I see...&lt;/P&gt;&lt;P&gt;I had the same problem. I wanted to see INV and RIN as the SAME object, (but the minus sign on quantities and prices for RIN). So, what I did is: load first INV table giving it a name:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Document:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM INV&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And then, I loaded RIN table forcing the concatenation of the two tables:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CONCATENATE (Document) SELECT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM INV&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I am simplifying to show the method, hope it's clear. This will result in a single "Document" internal table without syntetics keys. Of course, you will have fields that you can use, if you need, to distinguish the invoice from the return, in the analysis. By the way, I used the same approach for DLN, RDN, RDR tables....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 16:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154662#M31213</guid>
      <dc:creator />
      <dc:date>2010-05-18T16:21:19Z</dc:date>
    </item>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154663#M31214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot guys for all your help.&lt;/P&gt;&lt;P&gt;I got it working by using a combination of your methods.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 07:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154663#M31214</guid>
      <dc:creator />
      <dc:date>2010-05-19T07:40:27Z</dc:date>
    </item>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154664#M31215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Christo Roder wrote:&lt;BR /&gt;I got it working by using a combination of your methods. &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Can you please put the combination of those methods which was working finally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 08:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154664#M31215</guid>
      <dc:creator />
      <dc:date>2010-05-19T08:11:39Z</dc:date>
    </item>
    <item>
      <title>Avoiding Syn Keys - Please help</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154665#M31216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did a inner join on the Invoice Lines &amp;amp; Invoice Header (which joins on DocEntry).&lt;/P&gt;&lt;P&gt;Stored the joined table into a qvd file &amp;amp; then dropped the table.&lt;/P&gt;&lt;P&gt;I did a inner join on the Credit Note Header &amp;amp; Credit Note Lines (also joins on DocEntry)&lt;/P&gt;&lt;P&gt;Stored the joined table into a qvd file &amp;amp; then dropped the table.&lt;/P&gt;&lt;P&gt;I then loaded the INV qvd file and then CONCATENATE it with the RIN qvd file.&lt;/P&gt;&lt;P&gt;Now I have one table (document). See attached how this looks now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for all your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 11:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Syn-Keys-Please-help/m-p/154665#M31216</guid>
      <dc:creator />
      <dc:date>2010-05-19T11:36:05Z</dc:date>
    </item>
  </channel>
</rss>

