<?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 Scripting help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265224#M707946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Murali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need som more info on your data model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are the UnderwriterID and Thirdparty different for the ClientID in the two tables? If they are, then I would rename them as something different in one of the two tables and link only on the ClientID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg&lt;EM&gt; LOAD UndewriterID AS ClientUnderwriterID, Thirdparty AS ClientThirdparty....&amp;nbsp; &lt;/EM&gt;for NameAddressData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the ClientID can have transactions with many combinations of UnderwriterID and Thirdparty, (ie the key to the transaction table is ClientID, ﻿UnderwriterID and Thirdparty), then you need to decide whether you need the UnderwriterID and Thirdparty in the NameAddress table - ie what purpose do they serve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to link on all three fields (ie the key to the relationship is all three fields, you can allow QV to create a synthetic key, or create your own composite key. Another option is to merge the two tables to create a single fact table. The best option depends on your data model and desgin objectives.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that QV creates an association between two tables by using a field of the same name in the two tables, so you would use:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD NameID as ClientID ....&amp;nbsp; &lt;/EM&gt;for the NameAddress data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope these help&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2011 14:31:08 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2011-09-15T14:31:08Z</dc:date>
    <item>
      <title>Scripting help</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265221#M707943</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 got a two table Transaction and NameAddress. Three columns in Transaction table link to same column in NameAddress table. The sample table structures are given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction:&lt;/P&gt;&lt;P&gt;------------------&lt;/P&gt;&lt;P&gt;TransactionID&lt;/P&gt;&lt;P&gt;ClientID&lt;/P&gt;&lt;P&gt;UnderwriterID&lt;/P&gt;&lt;P&gt;ThirdPartyID&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NameAddress: &lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;NameID&lt;/P&gt;&lt;P&gt;FullName&lt;/P&gt;&lt;P&gt;Address&lt;/P&gt;&lt;P&gt;other columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to link ClientID with NameID to fetch client name &amp;amp; address details. The same is the case with Underwriter and Thirdparty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently in QlikView I am creating 3 copies of the NameAddress table and joining separately. Is this is best way or there are any other ways to join this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If having 3 tables is the best way, then the issue I am having is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. User wants a list box with list of all names. And when he selects a name, data should be displayed if any of Client, Underwriter or Thirparty name matched with selected name from the list box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you plese advice me on how to proceed with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 13:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265221#M707943</guid>
      <dc:creator />
      <dc:date>2011-09-15T13:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting help</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265222#M707944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that's a good approach you started with (3 copies of the NameAddress table).&lt;/P&gt;&lt;P&gt;(Have a look in the first "More like this" thread here to the right.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the search functionality you want, maybe you can do it with a search object, I am not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you may create a new table (TransNames) which links to Transaction on TransactionID:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming you first have left joined so that you have the three different types of fullnames in the Transaction table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;TransNames:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Load TransactionID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClientFullName As AnyFullName&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Resident Transaction;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Concatenate (TransNames)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Load TransactionID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UnderwriterFullName As AnyFullName&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Resident Transaction;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Concatenate (TransNames)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Load TransactionID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ThirdPartyFullName As AnyFullName&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Resident Transaction;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now your users can search for '*Koti*' in the AnyFullName field to get all transactions where a person with Koti in the name has been involved in any way (as Client, Underwriter and/or ThirdParty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 14:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265222#M707944</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-09-15T14:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting help</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265223#M707945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your post. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is exactly how I am currently hadling it in my script. Only change is instead of TransactionID, I am using RowNo() in my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the key issue I am facing here is, because the NameAddress table has close to 2M records, having 3 copies of it and again concatenating to create a new table is taking quite a lot of time to load data and also more RAM space when users access this using access point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I posted this here to find out what I am doing is correct or there any other better ways to handle this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 14:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265223#M707945</guid>
      <dc:creator />
      <dc:date>2011-09-15T14:26:52Z</dc:date>
    </item>
    <item>
      <title>Scripting help</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265224#M707946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Murali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need som more info on your data model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are the UnderwriterID and Thirdparty different for the ClientID in the two tables? If they are, then I would rename them as something different in one of the two tables and link only on the ClientID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg&lt;EM&gt; LOAD UndewriterID AS ClientUnderwriterID, Thirdparty AS ClientThirdparty....&amp;nbsp; &lt;/EM&gt;for NameAddressData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the ClientID can have transactions with many combinations of UnderwriterID and Thirdparty, (ie the key to the transaction table is ClientID, ﻿UnderwriterID and Thirdparty), then you need to decide whether you need the UnderwriterID and Thirdparty in the NameAddress table - ie what purpose do they serve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to link on all three fields (ie the key to the relationship is all three fields, you can allow QV to create a synthetic key, or create your own composite key. Another option is to merge the two tables to create a single fact table. The best option depends on your data model and desgin objectives.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that QV creates an association between two tables by using a field of the same name in the two tables, so you would use:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD NameID as ClientID ....&amp;nbsp; &lt;/EM&gt;for the NameAddress data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope these help&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 14:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265224#M707946</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-09-15T14:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting help</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265225#M707947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may consider changing your datamodel so you have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Transaction&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Transaction_ID&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Agent&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Transaction_ID&lt;/P&gt;&lt;P&gt;Type &lt;EM&gt; (here you will have Client/Undertaker/Thirdparty)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;NameID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;NameAddress&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NameID&lt;/P&gt;&lt;P&gt;FullName&lt;/P&gt;&lt;P&gt;Address&lt;/P&gt;&lt;P&gt;other columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction to Agent is a many-to-many relation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your users now search in FullName they will get all kinds of &lt;EM&gt;Client/Undertaker/Thirdparty)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If&amp;nbsp; you also give them the option to choose Type they can (if they like) specify what they are searching for&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;hth&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;/gg&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 14:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265225#M707947</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-09-15T14:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting help</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265226#M707948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this solution is going to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try this and let you know the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 14:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265226#M707948</guid>
      <dc:creator />
      <dc:date>2011-09-15T14:52:52Z</dc:date>
    </item>
    <item>
      <title>Scripting help</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265227#M707949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi GandalfGray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like your solution for many-to-many relationships and will check it for usability within some other circumstances. Btw: do you think Undertakers and underwriters are the same &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 15:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265227#M707949</guid>
      <dc:creator />
      <dc:date>2011-09-15T15:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting help</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265228#M707950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"... Undertakers and underwriters ..."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt; Oh, there I exposed myself as a non-native english-speaker &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;. I was in a hurry, if that's an excuse ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 06:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-help/m-p/265228#M707950</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-09-16T06:33:45Z</dc:date>
    </item>
  </channel>
</rss>

