<?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 Join tables in script or view in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1678278#M449885</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a doubt regarding performance. I have to create a field (Field c = field a * field b) which is a multiplication of 2 fields (field a from table 1 and field b from table 2) present in different tables.&lt;/P&gt;&lt;P&gt;Now, should I join the 2 tables while loading them in the script, or keep them seperate and create the field (field c) in the viz while creating chart. Also, I would like to mention that field c will be used in multiple charts.&lt;/P&gt;&lt;P&gt;Table 1 has 264 rows and 52 columns. Table 2 has 2310 rows and 18 columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:12:49 GMT</pubDate>
    <dc:creator>qliktowin</dc:creator>
    <dc:date>2024-11-16T01:12:49Z</dc:date>
    <item>
      <title>Join tables in script or view</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1678278#M449885</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a doubt regarding performance. I have to create a field (Field c = field a * field b) which is a multiplication of 2 fields (field a from table 1 and field b from table 2) present in different tables.&lt;/P&gt;&lt;P&gt;Now, should I join the 2 tables while loading them in the script, or keep them seperate and create the field (field c) in the viz while creating chart. Also, I would like to mention that field c will be used in multiple charts.&lt;/P&gt;&lt;P&gt;Table 1 has 264 rows and 52 columns. Table 2 has 2310 rows and 18 columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1678278#M449885</guid>
      <dc:creator>qliktowin</dc:creator>
      <dc:date>2024-11-16T01:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in script or view</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1678356#M449888</link>
      <description>&lt;P&gt;Considering the number of rows you have , you&amp;nbsp; can keep the two tables separate by having&amp;nbsp; the Qlikview make the join instead of&amp;nbsp; using the join keyword&amp;nbsp; and resident load for creating this new field&amp;nbsp; . Just create a variable in the front end&amp;nbsp;&lt;/P&gt;&lt;P&gt;v&lt;SPAN&gt;Field c = field a * field b&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and use the vairble in all the places you want&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 08:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1678356#M449888</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2020-02-24T08:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in script or view</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1678372#M449890</link>
      <description>&lt;P&gt;This being a small data set, performance is not important in determining whether&amp;nbsp; to&amp;nbsp; do the calc in the load or in the front end.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If the calc is simple, and would only need to be done a few times, i would do it in the front end.&lt;/LI&gt;&lt;LI&gt;However, if the the derived field calculation would need to be done in many objects in the front end, and/or is a complex calculation, I would consider doing it in the load script.&lt;/LI&gt;&lt;LI&gt;Remember that a join runs the risk of duplicating data if the join fields contain duplicates. This is not usually a problem in the front end.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 24 Feb 2020 09:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1678372#M449890</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2020-02-24T09:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in script or view</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1678572#M449900</link>
      <description>&lt;P&gt;Hi Qliksus,&lt;/P&gt;&lt;P&gt;I tried this but was not working. The actual logic I am implementing is:-&lt;/P&gt;&lt;P&gt;field C = If(Field a = 'XYZ', field b * field d, 0)&lt;/P&gt;&lt;P&gt;Field a and b are from Table 1 and field d is from table 2. I put the logic of field c in variable (varc) and used it in the chart. The chart had Sum($(varc) + $(variable)). variable is just another variable present in my document. Can you please tell me what am I doing wrong.&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1678572#M449900</guid>
      <dc:creator>qliktowin</dc:creator>
      <dc:date>2020-02-24T15:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in script or view</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1678579#M449901</link>
      <description>&lt;P&gt;Hi Jontydkpi,&lt;/P&gt;&lt;P&gt;I am new to this and not exactly sure which calculations are considered complex calculations. I have just put the exact logic I am trying to implement right above, if you want to take a look at it. I certainly dont want to join in the script because one table is a dimension and other is a fact.&lt;/P&gt;&lt;P&gt;Hence, what do you think I should do. Please let me know if this is confusing and doesn't make sense. I would try my best to explain.&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1678579#M449901</guid>
      <dc:creator>qliktowin</dc:creator>
      <dc:date>2020-02-24T15:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in script or view</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1678815#M449914</link>
      <description>&lt;P&gt;Are you hetting values for just&amp;nbsp; sum( $(varc))&amp;nbsp; ?&amp;nbsp; &amp;nbsp;whats the formula in Variable ?&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;can you attach the file to check ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 04:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1678815#M449914</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2020-02-25T04:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in script or view</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1679187#M449939</link>
      <description>&lt;P&gt;Hi Qliksus,&lt;/P&gt;&lt;P&gt;i cannot attach the file but let me add more details to the whole scenario.&lt;/P&gt;&lt;P&gt;Table_1 has many fields. 2 of them are: Field_A, Field_B. Similarly Table_2 has many fields and one of them is Field_C. Both the tables are present in SQL SERVER database and I am loading them from there. Below is the whole logic and how everything is interacting. The logic for 2 variables is:&lt;/P&gt;&lt;P&gt;Var_A =&amp;nbsp;&lt;SPAN&gt;If(Field_A = 'XYZ', field_B * field_C, 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Var_B =&amp;nbsp;If(Field_A = 'PQR', field_B * field_C * 12, 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'XYZ' and 'PQR' are just 2 different strings in my data based on which the field is calculated. Var_A and Var_B will be used multiple times and thats why I am keeping the logic into 2 variables and not one. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the chart, in the expression I have put: Sum($(Var_A) + $(Var_B))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is exactly how the things are present in the document. I hope it is clear. Please let me know if this is confusing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 19:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1679187#M449939</guid>
      <dc:creator>qliktowin</dc:creator>
      <dc:date>2020-02-25T19:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in script or view</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1679335#M449947</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hope you are not using any aggregation within the variable&amp;nbsp;like&amp;nbsp; "&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;If(Field_A = 'XYZ',&amp;nbsp; sum(field_B * field_C), 0) " ? . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A&lt;/SPAN&gt;re you getting values for the expression&amp;nbsp; &lt;STRONG&gt;sum(&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;If(Field_A = 'XYZ', field_B * field_C, 0))&lt;/STRONG&gt;&amp;nbsp; ?&amp;nbsp; If not then you dont have data for the filter you are doing .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 08:58:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1679335#M449947</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2020-02-26T08:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in script or view</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1688061#M450491</link>
      <description>&lt;P&gt;I would recommend having a look over the following Design Blog along with the related posts in that one, as that will likely give you the underlying knowledge for which you are looking regarding the 'costs' of doing things in different ways, I am including the base URL to the Design Blog area too in case you wish to search further on you own, but I hope this will allow you to learn the details of things work behind the scenes.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Calculation-Engine/ba-p/1463265" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Calculation-Engine/ba-p/1463265&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 12:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-script-or-view/m-p/1688061#M450491</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-03-26T12:00:06Z</dc:date>
    </item>
  </channel>
</rss>

