<?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: How to prevent a join in the model in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284251#M847434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your quick answer.&lt;/P&gt;&lt;P&gt;It works. But I have an additional question.&lt;/P&gt;&lt;P&gt;In the chart I added an expression "=sum(amount)" and the amount is doubled"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Mar 2017 11:38:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-03-27T11:38:09Z</dc:date>
    <item>
      <title>How to prevent a join in the model</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284249#M847432</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;There is a behavior that I don't understand.&lt;/P&gt;&lt;P&gt;I have a "projects" table where a projet is unique. and I have "results" table where this project has 2 results.&lt;/P&gt;&lt;P&gt;the "key_projet" field exists in both tables.&lt;/P&gt;&lt;P&gt;I created a chart with key_projet dimension and the expresssion is count(key_projet).&lt;/P&gt;&lt;P&gt;I expected a count "1" but it is "2". It seems that a join is made between two tables but it is not I would like.&lt;/P&gt;&lt;P&gt; I don't know why ?&lt;/P&gt;&lt;P&gt;thanks a lot in advance for your help&lt;/P&gt;&lt;P&gt;Nasser&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/How-to-prevent-a-join-in-the-model/m-p/1284249#M847432</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent a join in the model</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284250#M847433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nasser,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any chance that you can upload a sample QVW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;key_project&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 10:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284250#M847433</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2017-03-27T10:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent a join in the model</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284251#M847434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your quick answer.&lt;/P&gt;&lt;P&gt;It works. But I have an additional question.&lt;/P&gt;&lt;P&gt;In the chart I added an expression "=sum(amount)" and the amount is doubled"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 11:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284251#M847434</guid>
      <dc:creator />
      <dc:date>2017-03-27T11:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent a join in the model</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284252#M847435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do these amounts appear twice in your results table? Then a sum() will double the original amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, connected tables in your data model will automatically perform a Natural Join.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 11:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284252#M847435</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-03-27T11:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent a join in the model</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284253#M847436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then rename that key_project name in other table.&lt;/P&gt;&lt;P&gt;then u get 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 11:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284253#M847436</guid>
      <dc:creator>stonecold111</dc:creator>
      <dc:date>2017-03-27T11:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent a join in the model</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284254#M847437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks your feed-back.&lt;/P&gt;&lt;P&gt;No, the amount is held in the project table. So in SQL I can notice that there is only one projet with its amount in the projects table. In a SQL query, I select both (project and amount) only from the projects table. There are 2 records for this project in the result table so (by sql) the result is doubled if I join this result table. And That make sens. But in Qlik, the chart has been build only on project number (coming from projects table) and sum(amount) (expression) coming from projects table as well. In this case, doubled does not make sens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 11:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284254#M847437</guid>
      <dc:creator />
      <dc:date>2017-03-27T11:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent a join in the model</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284255#M847438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Except if your project definitions appear twice in your projects table as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a new column to your projects table called TmpKeyProjet that contains a copy of key_projet. Reload and add a straight table with dimension TmpKeyProjet and expression =count(TmpKeyProjet)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 12:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284255#M847438</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-03-27T12:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent a join in the model</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284256#M847439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key field i.e. '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;key_project' should not be used anywhere in the front end as a best practice. Because it is a key and connecting 2 tables which can have different frequencies. The solution is to count the projects by renaming the Project column from Table 'Projects'. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 12:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-prevent-a-join-in-the-model/m-p/1284256#M847439</guid>
      <dc:creator>aapurva09</dc:creator>
      <dc:date>2017-03-27T12:34:05Z</dc:date>
    </item>
  </channel>
</rss>

