<?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: Qlik View - Data Association Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlik-View-Data-Association-Question/m-p/58070#M777559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could add this to your script before loading the data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUALIFY ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will prefix every ID field with the name of the table it occurs in. You're then free to rename fields as needed to create the correct associations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other fields will not be prefixed. If you want to prefix all fields (generally not recommended) use QUALIFY *;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2018 17:22:10 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2018-04-18T17:22:10Z</dc:date>
    <item>
      <title>Qlik View - Data Association Question</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-View-Data-Association-Question/m-p/58069#M777558</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 am brand new to Qlik View.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am importing data from a SQL instance and the default associations created are incorrect. As far as I can tell, Qlik View creates associations between identically named fields in tables. The issue is, I have 40+ tables each using a field called "ID" as a PK so Qlik View is trying to create associations on this field (which is definitely not correct).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can clean this up using a tool like "Table Viewer" to redefine relationships, or, as I am beginning to fear, the only way to do this is to manually rename all sorts of fields in the import script? Really hoping there is a better way to do this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your time and help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-View-Data-Association-Question/m-p/58069#M777558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik View - Data Association Question</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-View-Data-Association-Question/m-p/58070#M777559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could add this to your script before loading the data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUALIFY ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will prefix every ID field with the name of the table it occurs in. You're then free to rename fields as needed to create the correct associations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other fields will not be prefixed. If you want to prefix all fields (generally not recommended) use QUALIFY *;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 17:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-View-Data-Association-Question/m-p/58070#M777559</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-04-18T17:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik View - Data Association Question</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-View-Data-Association-Question/m-p/58071#M777560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rename the existing fields in the script&amp;nbsp; like this&lt;/P&gt;&lt;P&gt;Existing fieldname as new_fieldname , &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 17:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-View-Data-Association-Question/m-p/58071#M777560</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2018-04-18T17:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik View - Data Association Question</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-View-Data-Association-Question/m-p/58072#M777561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert...I appreciate the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I guess I'm stuck renaming fields! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose what I am struggling with is I can understand the need to manually define relationships if I was talking about disparate data sources (for example, trying to relate a SQL table to an Excel file). However, when pulling data in from a single relational database where all of the relationships are already correctly defined, it seems rather inefficient to have to essentially redefine those relationships because a bunch of fields happen to share the same name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should mention this gets further complicated because a number of the tables also use a field called "Description" so Qlik View has set up all kinds of synthetic associations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just don't see name matching as a good basis for establishing data relationships (especially within a single relational database)..Just my 2 cents though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for confirming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 17:43:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-View-Data-Association-Question/m-p/58072#M777561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-18T17:43:42Z</dc:date>
    </item>
  </channel>
</rss>

