<?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: Association problem due to same attribute names in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Association-problem-due-to-same-attribute-names/m-p/336091#M123987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I can't really make it work. I currently try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user_map:&lt;/P&gt;&lt;P&gt;Mapping SELECT * FROM users;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; thread_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ns_creator_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ns_participant_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('user_map',ns_creator_id), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('user_map',ns_participant_id)&lt;/P&gt;&lt;P&gt;FROM module_network_structure;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see a mistake? I attached the two tables from the viewer as a screenshot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2012 12:58:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-05T12:58:21Z</dc:date>
    <item>
      <title>Association problem due to same attribute names</title>
      <link>https://community.qlik.com/t5/QlikView/Association-problem-due-to-same-attribute-names/m-p/336088#M123984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently struggling with the following situation: I have a table with three columns:&lt;/P&gt;&lt;P&gt;Thread_id (ID of the thread, referring to a thread in a forum)&lt;/P&gt;&lt;P&gt;Creator_id (ID of the thread creator, this references another table with more information about the user)&lt;/P&gt;&lt;P&gt;Participant_Id (ID of the thread participant, this references the previous table with user information as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the referenced attribute in the user table is called u_id. When I load both creator_id as well as participant_id as u_id, I receive an error. Is it possible to add references to the user table manually? Or does another solution exist?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 12:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Association-problem-due-to-same-attribute-names/m-p/336088#M123984</guid>
      <dc:creator />
      <dc:date>2012-07-05T12:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Association problem due to same attribute names</title>
      <link>https://community.qlik.com/t5/QlikView/Association-problem-due-to-same-attribute-names/m-p/336089#M123985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's two options here - the easy compromise, and the harder full solution.&lt;/P&gt;&lt;P&gt;Easy: Load the user table twice. Rename u_id in the first instance as Creator_id, and once as Participant_Id. This will give you the details for both, but it will not allow you to select a single user from a single listbox and and see all of their details both as creator as participant. However, if the original post in the thread contains Creator_id = Participant_id, this would probably be an adequate solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hard: Link to a single instance of the description table. This has been covered on this forum, e.g. &lt;A _jive_internal="true" href="https://community.qlik.com/message/225999"&gt;here &lt;/A&gt;and &lt;A _jive_internal="true" href="https://community.qlik.com/thread/27758"&gt;here&lt;/A&gt; - I would only go with this option if it is necessary to select the user from a single location and view their data both as participant and creator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 12:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Association-problem-due-to-same-attribute-names/m-p/336089#M123985</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2012-07-05T12:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Association problem due to same attribute names</title>
      <link>https://community.qlik.com/t5/QlikView/Association-problem-due-to-same-attribute-names/m-p/336090#M123986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks for your help! I will try to realize the full solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 12:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Association-problem-due-to-same-attribute-names/m-p/336090#M123986</guid>
      <dc:creator />
      <dc:date>2012-07-05T12:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Association problem due to same attribute names</title>
      <link>https://community.qlik.com/t5/QlikView/Association-problem-due-to-same-attribute-names/m-p/336091#M123987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I can't really make it work. I currently try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user_map:&lt;/P&gt;&lt;P&gt;Mapping SELECT * FROM users;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; thread_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ns_creator_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ns_participant_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('user_map',ns_creator_id), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('user_map',ns_participant_id)&lt;/P&gt;&lt;P&gt;FROM module_network_structure;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see a mistake? I attached the two tables from the viewer as a screenshot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 12:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Association-problem-due-to-same-attribute-names/m-p/336091#M123987</guid>
      <dc:creator />
      <dc:date>2012-07-05T12:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Association problem due to same attribute names</title>
      <link>https://community.qlik.com/t5/QlikView/Association-problem-due-to-same-attribute-names/m-p/336092#M123988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mapping tables should include two columns - the ID value first, and the name value second. It looks like yours contains significantly more columns than that.&lt;/P&gt;&lt;P&gt;One other small note - you should probably add an alias ( as Creator / as Participant) to your Applymap()s, just to make things easier to look at later.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2012 10:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Association-problem-due-to-same-attribute-names/m-p/336092#M123988</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2012-07-08T10:41:32Z</dc:date>
    </item>
  </channel>
</rss>

